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
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