ruby - How to get Nokogiri to install on Ubuntu 14.04 64-bit -
this when try install nokogiri on ubuntu 14.04 64-bit.
/usr/local/bin/ruby extconf.rb building nokogiri using packaged libraries. *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. 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 --help --clean --use-system-libraries <internal:lib/rubygems/custom_require>:29:in `require': no such file load -- openssl (loaderror) <internal:lib/rubygems/custom_require>:29:in `require' /usr/local/lib/ruby/1.9.1/net/https.rb:92:in `<top (required)>' <internal:lib/rubygems/custom_require>:29:in `require' <internal:lib/rubygems/custom_require>:29:in `require' /usr/local/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:3:in `<top (required)>' <internal:lib/rubygems/custom_require>:33:in `require' <internal:lib/rubygems/custom_require>:33:in `rescue in require' <internal:lib/rubygems/custom_require>:29:in `require' extconf.rb:364:in `<main>'
i checked mkmf.log file , says:
package configuration libxml-2.0 not found package configuration libxslt not found package configuration libexslt not found "gcc -o conftest -i/usr/local/include/ruby-1.9.1/x86_64-linux -i/usr/local/include/ruby-1.9.1/ruby/backward -i/usr/local/include/ruby-1.9.1 -i. -o3 -ggdb -wextra -wno-unused-parameter -wno-parentheses -wpointer-arith -wwrite-strings -wno-missing-field-initializers -wno-long-long -g -dxp_unix -o3 -wall -wcast-qual -wwrite-strings -wconversion -wmissing-noreturn -winline conftest.c -l. -l/usr/local/lib -wl,-r/usr/local/lib -l. -rdynamic -wl,-export-dynamic -wl,-r -wl,/usr/local/lib -l/usr/local/lib -lruby-static -lpthread -lrt -ldl -lcrypt -lm -lc " checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main() {return 0;} /* end */ "gcc -e -i/usr/local/include/ruby-1.9.1/x86_64-linux -i/usr/local/include/ruby-1.9.1/ruby/backward -i/usr/local/include/ruby-1.9.1 -i. -o3 -ggdb -wextra -wno-unused-parameter -wno-parentheses -wpointer-arith -wwrite-strings -wno-missing-field-initializers -wno-long-long -g -dxp_unix -o3 -wall -wcast-qual -wwrite-strings -wconversion -wmissing-noreturn -winline conftest.c -o conftest.i" conftest.c:3:31: fatal error: libxml/xmlversion.h: no such file or directory #include <libxml/xmlversion.h> ^ compilation terminated. checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <libxml/xmlversion.h> 4: 5: #if libxml_version < 20621 6: #error libxml2 old 7: #endif /* end */
Comments
Post a Comment