Install to Ubuntu stuck on libxml2_GUSIConfig.cp

64 views
Skip to first unread message

Robert Devitt

unread,
Mar 27, 2014, 7:27:32 PM3/27/14
to nokogi...@googlegroups.com
So I tried the instructions on the website

# ruby developer packages
sudo apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8
sudo apt-get install libreadline-ruby1.8 libruby1.8 libopenssl-ruby

# nokogiri requirements
sudo apt-get install libxslt-dev libxml2-dev
sudo gem install nokogiri

Freezes here after a sudo gem install nokogiri -V:

Successfully installed nokogiri-1.6.1 Parsing documentation for nokogiri-1.6.1 Parsing sources... unable to convert "\xE4" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-linux-gnu/ports/libxml2/2.8.0/libxml2-2.8.0/doc/examples/testWriter.c, skipping unable to convert "\xF8" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-linux-gnu/ports/libxml2/2.8.0/libxml2-2.8.0/entities.c, skipping 8% [523/6434] .../libxml2/2.8.0/libxml2-2.8.0/macos/src/libxml2_GUSIConfig.cp


I am told that it takes a while to compile. But it's been more than 24 hours...

I tried sudo apt-get install libxslt1-dev libxml2-dev with the same results.

Should I just go find another library or is there a fix for this?

Thank you

Ubuntu 12.04.4 server

Mike Dalessio

unread,
Mar 27, 2014, 10:36:27 PM3/27/14
to nokogiri-talk
Greetings! Thanks for asking this question.


Without access to your make logs, I can neither reproduce nor diagnose the problem you're seeing.

So, you should find another library ... just kidding. Before you do that, try setting the environment variable

  export NOKOGIRI_USE_SYSTEM_LIBRARIES=1

and then installing the gem. This will skip compiling libxml2 and use what's installed on your system already.

Please let us all know how you get on!

-mike

Robert Devitt

unread,
Mar 28, 2014, 6:15:40 PM3/28/14
to nokogi...@googlegroups.com
Thank you, that worked perfectly, installed in 12 seconds!

Whereabouts would I find the logs?  Just curious why it couldn't compile
Reply all
Reply to author
Forward
0 new messages