Issues Building Nokogiri #2913

Closed
Mavvie opened this Issue Jan 29, 2014 · 6 comments

Comments

Projects
None yet
3 participants
@Mavvie

Mavvie commented Jan 29, 2014

Rubinius version: 2.2.3
uname -a: Linux 3.2.0-51-generic #77-Ubuntu x86_64 GNU/Linux (ElementaryOS)

Stack Trace:

`An exception occurred running extconf.rb:

undefined method `load_file' on Psych (Module) (NoMethodError)

Backtrace:

Kernel(Module)#load_file (method_missing) at kernel/delta/kernel.rb:78
Object#script at extconf.rb:107
Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66
Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:201
Rubinius::Loader#script at kernel/loader.rb:649
Rubinius::Loader#main at kernel/loader.rb:831
*** 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=/home/tyler/.rvm/rubies/rbx-2.2.3/bin/rbx

extconf failed, exit code 1`

I have libiconv, libxml2-dev, libxslt-dev installed. I've run gem install rubysl, and all my other gems (A normal Rails app) build fine, apart from Nokogiri.

I can't find mkmf.log. I ran find / -name mkmf.log | grep nokogiri and zero results came up. Without the grep, there's lots of results but none of them relevant to the Nokogiri gem.

Anyone had this issue before? It appears to have to do with YAML parsing (psych errors out), but because it only happens for nokogiri I have to assume that I've failed at installing the libraries correctly. I followed the instructions here http://nokogiri.org/tutorials/installing_nokogiri.html , with no luck. Can someone tell me what files are needed for Nokogiri?

Note: It works fine on various versions of MRI (tested 1.9.3, 2.0.0, and 2.1.0).

Gist of gem list: https://gist.github.com/Mavvie/8682210

Thanks in advance!

@YorickPeterse

This comment has been minimized.

Show comment Hide comment
@YorickPeterse

YorickPeterse Jan 29, 2014

Owner

I vaguely recall that this issue was fixed before in one of the rubysl Gems, although I can't remember which one. Can you run a gem update and try building again?

Owner

YorickPeterse commented Jan 29, 2014

I vaguely recall that this issue was fixed before in one of the rubysl Gems, although I can't remember which one. Can you run a gem update and try building again?

@Mavvie

This comment has been minimized.

Show comment Hide comment
@Mavvie

Mavvie Jan 29, 2014

Thanks, I just did that and no luck. Exact same issue. Any other ideas?

On Wed, 29 Jan, 2014 at 3:40 AM, Yorick Peterse
notifications@github.com wrote:

I vaguely recall that this issue was before in one of the rubysl
Gems, although I can't remember which one. Can you run a gem update
and try building again?


Reply to this email directly or view it on GitHub.

Mavvie commented Jan 29, 2014

Thanks, I just did that and no luck. Exact same issue. Any other ideas?

On Wed, 29 Jan, 2014 at 3:40 AM, Yorick Peterse
notifications@github.com wrote:

I vaguely recall that this issue was before in one of the rubysl
Gems, although I can't remember which one. Can you run a gem update
and try building again?


Reply to this email directly or view it on GitHub.

@dbussink

This comment has been minimized.

Show comment Hide comment
@dbussink

dbussink Feb 2, 2014

Owner

Do you have the psych gem installed? If not, can you try installing it and see if you can install nokogiri afterwards?

Owner

dbussink commented Feb 2, 2014

Do you have the psych gem installed? If not, can you try installing it and see if you can install nokogiri afterwards?

@Mavvie

This comment has been minimized.

Show comment Hide comment
@Mavvie

Mavvie Feb 2, 2014

$ gem install psych Building native extensions. This could take a while... Successfully installed psych-2.0.2 Parsing documentation for psych-2.0.2 Done installing documentation for psych after 1 seconds 1 gem installed

Then gem install nokogiri fails in the same way (undefined method
load_file on Psych (Module) (NoMethodError)).

Also, psych was in my project's gemfile. Why wasn't it already installed?

On Sun, Feb 2, 2014 at 4:19 AM, Dirkjan Bussink notifications@github.comwrote:

Do you have the psych gem installed? If not, can you try installing it
and see if you can install nokogiri afterwards?

Reply to this email directly or view it on GitHubhttps://github.com/rubinius/rubinius/issues/2913#issuecomment-33895915
.

Mavvie commented Feb 2, 2014

$ gem install psych Building native extensions. This could take a while... Successfully installed psych-2.0.2 Parsing documentation for psych-2.0.2 Done installing documentation for psych after 1 seconds 1 gem installed

Then gem install nokogiri fails in the same way (undefined method
load_file on Psych (Module) (NoMethodError)).

Also, psych was in my project's gemfile. Why wasn't it already installed?

On Sun, Feb 2, 2014 at 4:19 AM, Dirkjan Bussink notifications@github.comwrote:

Do you have the psych gem installed? If not, can you try installing it
and see if you can install nokogiri afterwards?

Reply to this email directly or view it on GitHubhttps://github.com/rubinius/rubinius/issues/2913#issuecomment-33895915
.

@YorickPeterse

This comment has been minimized.

Show comment Hide comment
@YorickPeterse

YorickPeterse Feb 7, 2014

Owner

Quote from #2919 (comment), same applies:

571cc8d seems to've fixed this issue. If possible, could you give Rubinius master a try and see if it indeed solves the problem?

Owner

YorickPeterse commented Feb 7, 2014

Quote from #2919 (comment), same applies:

571cc8d seems to've fixed this issue. If possible, could you give Rubinius master a try and see if it indeed solves the problem?

@Mavvie

This comment has been minimized.

Show comment Hide comment
@Mavvie

Mavvie Feb 8, 2014

Great! This issue is completely resolved, rbx is now working perfectly.
Thanks for pointing that commit out!

On Fri, Feb 7, 2014 at 6:11 PM, Yorick Peterse notifications@github.comwrote:

Quote from #2919 (comment)#2919 (comment)

571cc8dhttps://github.com/rubinius/rubinius/commit/571cc8d379423fefdfbd36b670c1f180595bb2acseems to've fixed this issue. If possible, could you give Rubinius master a
try and see if it indeed solves the problem?

Reply to this email directly or view it on GitHubhttps://github.com/rubinius/rubinius/issues/2913#issuecomment-34517628
.

Mavvie commented Feb 8, 2014

Great! This issue is completely resolved, rbx is now working perfectly.
Thanks for pointing that commit out!

On Fri, Feb 7, 2014 at 6:11 PM, Yorick Peterse notifications@github.comwrote:

Quote from #2919 (comment)#2919 (comment)

571cc8dhttps://github.com/rubinius/rubinius/commit/571cc8d379423fefdfbd36b670c1f180595bb2acseems to've fixed this issue. If possible, could you give Rubinius master a
try and see if it indeed solves the problem?

Reply to this email directly or view it on GitHubhttps://github.com/rubinius/rubinius/issues/2913#issuecomment-34517628
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment