If you have any problems with these libraries, you should install them manually compiling the source code. Just follow the instructions "here":http://nokogiri.org/tutorials/installing_nokogiri.html#red_hat__centos .
Also, SQLite3 and its development files for the +sqlite3-ruby+ gem -- in Ubuntu you're done with just
<shell>
$ sudo apt-get install sqlite3 libsqlite3-dev
</shell>
And if you are on Fedora or CentOS, you're done with
<shell>
$ sudo yum install sqlite3 sqlite3-devel
</shell>
Get a recent version of "Bundler":http://gembundler.com/: