How to install Ruby on Rails and MySql on my Ubuntu 10.04 OS?

6 Answers 6


Ruby on Rails

sudo apt-get install rails

For details, see the Ubuntu Help here.


sudo apt-get install mysql-server

For details, see the Ubuntu Help here.

  • aptitude is the new apt-get.
    – Paul Schreiber
    Mar 19, 2011 at 4:18
  • Yes. You should not be using apt-get for ANYTHING. It will not mark deps as automatically installed and therefor they will remain on your machine until you remove them by hand. Mar 19, 2011 at 6:43
  • Actually, aptitude was last in the default install in 10.04. Most users won't even have it on their system.
    – micahg
    Nov 22, 2011 at 6:48

I follow this guide every single time:


It's written for 9.10, but it works equally well for 10.04. The only (minor) difference is that you can remove the libmysqlclient15off package.

Good luck!


For Ruby on Rails

For Ubuntu 10.04, 10.10 and 11.04 I followed this guide: here!

There is a sibling for Ubuntu 11.10 here!


use rbenv to install ruby and rails framework http://www.computersnyou.com/1535/2013/03/installing-ruby-on-rail-on-ubuntu-with-rbenv-step-by-step/

  • 2
    Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
    – Dan
    Mar 13, 2013 at 8:35

For Ruby on Rails see this instruction and for mysql run command sudo apt-get install mysql-server


To install mysql on local machine (Ubuntu OS) you nedd one client and server version of mysql. to install follow the steps

sudo apt-get install mysql-server mysql-client
sudo apt-get install libmysql-ruby libmysqlclient-dev

You must log in to answer this question.