install nokogiri and libxml on ubuntu
Posted by javier ramirez on May 28, 2009
a quick one..
the scenario:
you want to install nokogiri on ubuntu but you cannot get the gem to install because of unmet dependencies
the solution:
sudo apt-get install libxml2 libxml2-dev libxslt1-dev
sudo gem install nokogiri
the end
ecleel said
Thanks
You solve my nokogiri install problem
roger ruby gems rdocs said
sweet thanks!
Soro said
Didn’t work for me, but the apt-get part was really important.
On Ubuntu 9.10:
sudo gem install nokogiri -- --with-xml2-include=/usr/local/include/libxml2 --with-xml2-lib=/usr/local/lib
tomek said
Thanks Soro – it worked for me :-)
matt said
Thanks for posting this. I also needed to:
sudo apt-get install ruby1.8-dev
alex said
thanks !
thant solved my nokogiri not installing problem on Ubuntu Desktop 10.04 :)
sara John said
Thanks this helped a lot.
Lucas Prim said
This post always saves me when i come back from a fresh ubuntu installation! thanks a lot!
kaushik said
Thanks dude it saved my time….
mydeen said
Thanks a lot dude. Valuable help…
Eiji Snicket said
Thanks a lot ! You saved me a couple of hours ;)
Robert Wolf said
Danke schön! (Thank you very much) from Germany
r00t said
Thank you, man! You helped me to save my time))
ljparra said
It works for me on Ubuntu 14.04 LTS, THANK YOU !!!