can't install roo!

34 views
Skip to first unread message

Jack Nutting

unread,
Aug 26, 2009, 6:16:23 AM8/26/09
to ruby-roo
Hi gang,

I've been a happy roo user for a long time. Now I'm setting up a new
server, running Ubuntu 8.04.1, and can't seem to install the roo gem.
It looks like it can't find a function called xmlParseDoc:

$ sudo gem install roo
Building native extensions. This could take a while...
ERROR: Error installing roo:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... yes
checking for atan() in -lm... no
checking for atan() in -lm... yes
checking for inflate() in -lz... yes
checking for iconv_open() in -liconv... no
checking for libiconv_open() in -liconv... no
checking for libiconv_open() in -llibiconv... no
checking for iconv_open() in -llibiconv... no
checking for iconv_open() in -lc... yes
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
checking for xmlParseDoc() in -lxml2... 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.


I used apt-get to install libxml2 (which was already there) and xml2
(which wasn't), but afterwards I still get the same result. Has
anyone else seen this?

Thomas Preymesser

unread,
Aug 28, 2009, 1:53:21 PM8/28/09
to ruby-roo
Hello Jack,
the 'xml2' package is not needed. At least i don't have it installed
and i can install roo.

I think your problem is a problem with the gem 'libxml-ruby'. Do you
get the same error when you only try to install this gem 'sudo gem
install libxml-ruby'? If yes, then maybe you could ask the authors of
this gem (http://libxml.rubyforge.org/index.xml).

-Thomas
Reply all
Reply to author
Forward
0 new messages