Installing Ruby on Ubuntu

Installing Ruby on Ubuntu

As seen on RVM

Go to the terminal in Ubuntu.

Add the public key from RVM

$ gpg --keyserver hkp:// --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

$ \curl -sSL | bash -s stable

On the Terminal go to the Menu/Edit/Profile Preferences/Title and Command.

Check “Run command as a login shell”.

Close the Terminal and start a new one.

$ type rvm | head -n 1

This should now say rvm is a function

Install Ruby. As of 10/20/16 the stable version was 2.3.1

$ rvm install 2.3.1

$ rvm use 2.3.1 --default

Use Gemsets

To work on different projects create a Gemset as seen here.

$ rvm use 2.3.1@name-of-project --create

List gemsets with:

$ rvm gemset list

Switch gemsets with:

$ rvm gemset use name-of-gemset

Related Post

Go to the Previous Directory in Vim I use Vim. Vim is the most productive text editor if you know some vim commands When I open a file and I am done with it. I often want to go...
Export Data From Firebird Database to CSV File Background Some software applications use a database called Firebird. This is an open source database. If the software application is compiled you ca...
Installing Hipchat on Ubuntu Tested on: Ubuntu 12.04 LTS Thinkpad T400, 2GB RAM Intel Core 2 Duo CPU P8600, 32bit Sources: Official hipchat linux instructions Ask U...
Reset Login Password in Windows Installing a program that only works on a Windows XP. The only computer with Win XP I have was stored in a box and it’s kind of old. At the login s...

Leave a Reply