Hi,
in two my server with Ubuntu I’m not able to install nokogiri.
When I run the installation command appears this message:
root@server1:/usr/lib# gem install nokogiri
Building native extensions. This could take a while…
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for libxml/parser.h… no
*** 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.
Gem files will remain installed in /var/lib/gems/1.8/gems/nokogiri-1.4.4
for inspection.
Results logged to
/var/lib/gems/1.8/gems/nokogiri-1.4.4/ext/nokogiri/gem_make.out
Somebody can help me please??
I’m searching on the net for some information but for now nothing to
do…
Thansk in advance.
Alex S. | Sr. Quality Engineer | hi5 Networks, Inc. | [email protected]
| m: 415.710.6961
Thanks for your reply but I’ve just installed libxml2-dev…
I don’t know what happens, One server have Ubuntu 9.04 and the other
Ubuntu 10.04 but int all the same error…
Might be a different lib you need. Try ‘apt-cache search libxml’ to
what else is available… might just be ‘libxml2’ you need, instead of
-dev. Or maybe ‘libxml-ruby(1.8|1.9.1)’.
Then again, this was exactly the problem I ran into when I was setting
up, and installing ‘libxml2-dev’ and ‘libxslt-dev’ resolved it. But if
you’re not getting an error on the latter, you would already have it.
Alex S. | Sr. Quality Engineer | hi5 Networks, Inc. | [email protected]
|
Might be a different lib you need. Try ‘apt-cache search libxml’ to
what else is available… might just be ‘libxml2’ you need, instead of
-dev. Or maybe ‘libxml-ruby(1.8|1.9.1)’.
Then again, this was exactly the problem I ran into when I was setting
up, and installing ‘libxml2-dev’ and ‘libxslt-dev’ resolved it. But if
you’re not getting an error on the latter, you would already have it.
Alex S. | Sr. Quality Engineer | hi5 Networks, Inc. | [email protected]
|
I’ve try this combination in various format but nothing to do…