I am trying to setup rails env on my new ubuntu machine. But I am facing trouble while install nokogiri gem.. I have installed libxslt and libxml2 libs thourgh rvm pkg command a
Since I stumbled upon this, here's what I did to resolve:
sudo apt-get install ruby1.9.1-dev
On 14.0.4, using RVM, you need:
sudo apt-get install -y libgmp-dev
Install ruby via rvm
and then install below libs:
sudo apt-get install libxslt-dev libxml2-dev
now try to install gem without sudo:
gem install nokogiri
apt-get install libxslt-dev libxml2-dev -y && export NOKOGIRI_USE_SYSTEM_LIBRARIES=1 && gem install --verbose nokogiri
Try this:
# nokogiri requirements
sudo apt-get install libxslt-dev libxml2-dev
gem install nokogiri
for Centos / Redhat, try this:
sudo yum install libxslt-devel libxml2-devel