Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM 1.9.1 & nokogiri

Having trouble installing the nokogiri gem under rvm ruby 1.9.1.

gem install nokogiri

I'm getting ...

/usr/include/libxml2... no
libxml2 is missing.  try 'port install libxml2' or 'yum install libxml2-devel'
*** extconf.rb failed ***

but i checked:

sudo apt-get install libxml2

and i got:

Reading state information... Done
libxml2 is already the newest version.

is this a root thing perhaps? RVM runs everything in userspace.

like image 680
scaney Avatar asked Mar 11 '10 14:03

scaney


1 Answers

A simpler solution:

sudo apt-get install libxslt-dev libxml2-dev
like image 69
dwaynemac Avatar answered Nov 09 '22 13:11

dwaynemac