-
-
Notifications
You must be signed in to change notification settings - Fork 905
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
Ruby 1.9.3/2.0.0 segfault #884
Comments
I have experienced the same problem with rake. I also have libxml2 2.9.0 (and libxslt 1.1.28) from homebrew (0.9.4). I resolved the issue by installing nokogiri this way: gem install nokogiri -- --with-iconv-lib=/usr/local/opt/libiconv/lib --with-iconv-include=/usr/local/opt/libiconv/include --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.0/lib --with-xml2-include=/usr/local/Cellar/libxml2/2.9.0/include/libxml2 I get warnings -- "WARNING: Nokogiri was built against LibXML version 2.7.8, but has dynamically loaded 2.9.0" -- but AFAICT it's working fine. |
Is there a way I can pass these arguments to the "rake test" task inside nokogiri? |
I had a similar issue using an embedded Ruby but nokogiri is doing something with system Ruby. The embedded Ruby is 2.0.0 and the system is 1.8.7 /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.9/lib/nokogiri/nokogiri.so: [BUG] Segmentation fault it then spits out ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] If I switch the system ruby to point at the embedded Ruby, everything works fine. I've tried installing the libs from source and installing nokogiri with the argvs. Nothing fixed it. I ended up installing nokogiri under system ruby and moved it to the embedded gem path. |
I'm not sure there's anything actionable here, as libxml 2.9.0 is buggy and not supported by nokogiri at this time (see #829 for an example). Please try nokogiri 1.6.0.rc1 which will compile libxml2 and libxslt for you at gem installation time? |
Triggered by running
rake
This may be due to linking against libxml 2.9.0?
I get a similar segfault at the same location with ruby 2.0.0
The text was updated successfully, but these errors were encountered: