CPANP saved me the day when I needed to install a Perl module. Continue reading How to install a Perl module with CPANP
I was trying to install Ruby Enterprise on my Ubuntu machine. I discover you need to be sure to have some package installed if you really want to build all gems needed by Ruby On Rails.
So be sure to install at least the headers for mysql and sqlite before installing Ruby Enterprise.
$ sudo apt-get install libmysqlclient-dev
$ sudo apt-get install libsqlite3-dev
Afterward you can compile the related gems with the following commands.
$ sudo /opt/ruby-enterprise-1.8.7-2010.02/bin/gem install mysql
$ sudo /opt/ruby-enterprise-1.8.7-2010.02/bin/gem install sqlite3-ruby