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
For Ruby 1.9.3 and 2.0, libxslt-dev and libxml2-dev are required.
sudo apt-get install libxslt-dev libxml2-dev
this is what worked for me:
install nokogiri's dependencies
sudo apt-get install libxslt-dev libxml2-dev
make sure nokogiri uses the system libraries
export NOKOGIRI_USE_SYSTEM_LIBRARIES=1
install nokogiri with the --verbose option, to get a better understanding of any problems
gem install --verbose nokogiri