warble with nokogiri no such file to load -- nokogiri/nokogiri #403

Closed
atambo opened this Issue Jan 26, 2011 · 6 comments

Projects

None yet

2 participants

@atambo

When trying to warble a rails 3 app with nokogiri master and nokogiri a7da3bb installed this happens on both ubuntu and windows:

https://gist.github.com/797663

@yokolet
Sparkle Motion member

Thanks for filing this. As I said on JRuby's IRC, I'll start from bisecting to figure out the wrong commit.

@yokolet
Sparkle Motion member

I guess you have the line below in your Gemfile:

gem 'nokogiri', '1.5.0.beta.3', :git => "git://github.com/tenderlove/nokogiri.git"

because you have nokogiri under "bundler" directory as in below:

c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/bundler/gems/nokogiri-558e7cd040e4/lib/nokogiri.rb:68:in `require'

If so, Nokogiri absolutely doesn't work. Compiling pure Java Nokogiri won't go automatically. Please fetch or clone nokogiri repo and go to http://blog.headius.com/2010/04/nokogiri-java-port-help-us-finish-it.html to compile pure Java version. Then, edit your Gemfile so that nokogiri wil be taken from source path. For example,

gem 'nokogiri', :path => "/Users/username/Projects/nokogiri"

Then warble should work. In my case, warble worked just fine when I set the path. However, I got the error like yours from warble when I write git repo instead of path.

@atambo

Thanks, that worked.
When do you think there will be a 1.5.0.beta.4 so I don't have to compile it myself?

@yokolet
Sparkle Motion member

Very nice to hear that.
The next release is supposed to be 1.5.0. (no beta) It should be soon.

@atambo

1.5.0.beta.4 is out and it fixed this, thanks

@yokolet
Sparkle Motion member

Nice! and thanks for talking about beta.4.

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