Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.7.0 in OpenBSD doesn't install #1569

Closed
vtamara opened this issue Dec 28, 2016 · 5 comments
Closed

1.7.0 in OpenBSD doesn't install #1569

vtamara opened this issue Dec 28, 2016 · 5 comments

Comments

@vtamara
Copy link

vtamara commented Dec 28, 2016

If you're having trouble installing Nokogiri ...

Have you tried following the installation tutorial?
Yes

What is the output of gem install?
Although I already installed GCC from ports as tutorial suggests it complains with:

Please install gcc 4.9+ from ports using pkg_add -v gcc

What are the contents of the mkmf.log file?
find_executable: checking for egcc... -------------------- yes


What operating system are you using?
OpenBSD

@larskanis
Copy link
Member

Can you please post the full output of gem install and the mkmf.log ?

@vtamara
Copy link
Author

vtamara commented Dec 29, 2016

Full output of $ doas gem install nokogiri :

Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
        ERROR: Failed to build gem native extension.

    current directory: /usr/local/lib/ruby/gems/2.4/gems/nokogiri-1.7.0/ext/nokogiri
/usr/local/bin/ruby24 -r ./siteconf20161229-10357-1yvoleq.rb extconf.rb
checking for egcc... yes
Please install gcc 4.9+ from ports using `pkg_add -v gcc`
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/$(RUBY_BASE_NAME)24
        --help
        --clean

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /usr/local/lib/ruby/gems/2.4/extensions/x86_64-openbsd/2.4/nokogiri-1.7.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /usr/local/lib/ruby/gems/2.4/gems/nokogiri-1.7.0 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.4/extensions/x86_64-openbsd/2.4/nokogiri-1.7.0/gem_make.out

Full output of /usr/local/lib/ruby/gems/2.4/extensions/x86_64-openbsd/2.4/nokogiri-1.7.0/mkmf.log:

find_executable: checking for egcc... -------------------- yes

--------------------

@vtamara
Copy link
Author

vtamara commented Dec 29, 2016

I just sent pull request that possibly fixes. #1570

@vtamara
Copy link
Author

vtamara commented Dec 29, 2016

Anyway while you apply, I'm staying in 1.6.8.1 that works fine

@larskanis
Copy link
Member

Fixed typo on master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants