Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

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: http://www.rosehosting.com/blog/how-to-install-ruby-2-0-and-rubygems-2-1-11-on-ubuntu-13-10-from-source/

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

cd /root
wget http://ftp.ruby-lang.org/pub/ruby/ruby-2.1.2.tar.gz
wget http://production.cf.rubygems.org/rubygems/rubygems-2.2.2.tgz

and execute the following commands:

tar xvzf ruby-2.1.2.tar.gz
cd ruby-2.1.2
./configure
make
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.