Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from Mar 20 '11 at 7:29

This question came from our site for professional and enthusiast programmers.

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.

share|improve this answer
aptitude is the new apt-get. – Paul Schreiber Mar 19 '11 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. – jcm Mar 19 '11 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 '11 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!

share|improve this answer

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!

share|improve this answer

use rbenv to install ruby and rails framework

share|improve this answer
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 '13 at 8:35
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Flimm Mar 13 '13 at 9:02

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

share|improve this answer

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.