There is a dependency issue in building nokogiri, so you need to install the xml and xslt libraries first in order to build nokogiri
sudo apt-get install libxml2 libxml2-dev libxslt1-dev
sudo gem install nokogiri
This worked for me

Ubuntu 11.04 code named natty narwhal is released download ubuntu 11.04
Read ubuntu 11.10 reviews and share yours now!!
Thank you cery much. It is working !!!
- Visitor 1 year 40 weeks ago