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

This question already has an answer here:

How to install ruby on rails on Ubuntu 14.04? Which versions are better to install, and how to install

  • ruby (version)
  • rubygems,
  • rubygems_update -v (version),
  • mysql_server
  • libmysqlclient-dev
  • mysql2,
  • rails -v=(version),
  • rake --version (version),
share|improve this question

marked as duplicate by Eric Carvalho, Luis Alvarado Jul 24 '14 at 19:06

This question was marked as an exact duplicate of an existing question.

up vote 0 down vote accepted

To install MySQL server, use the following command:

apt-get install mysql-server

More information on how to install ruby on rails on an Ubuntu server you can find at:

To install the latest versions of Ruby and Rubygems download the following archives:

cd /root

and execute the following commands:

tar xvzf ruby-2.1.2.tar.gz
cd ruby-2.1.2
make install
cd /root
tar xvzf rubygems-2.2.2.tgz
cd rubygems-2.2.2
ruby setup.rb

then, follow the tutorial above in order to install the latest gem versions etc.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.