Articles

Install Ruby 2.x on Linux Mint 17.3

In howto on Dec 30, 2015 by theoryl Tagged: , , ,

Linux Mint 17.3 (based on Ubuntu 14.04 LTS) comes with an old Ruby version (1.9.1). To get Ruby 2.2, I use the PPA provided by Brightbox team. I followed the instructions listed https://www.brightbox.com/docs/ruby/ubuntu/. Basically, do:

sudo apt-get install software-properties-common
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.2 ruby2.2-dev

ruby -v
# Output: ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux-gnu]

gem -v
# Output: 2.4.5.1

To test, try:

sudo gem install bundler

Alternative solution using ruby-install: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/

Advertisements

4 Responses to “Install Ruby 2.x on Linux Mint 17.3”

  1. […] Ruby, bundler (See my earlier post for Linux Mint 17.3-specific instructions or GitHub Help for general […]

  2. Godammit!! I was trying to install this shit all day long and was not working and thanks to you is ok now!!! Thanks bro.

  3. Thank you so much! I was wondering all day with this issue and finally found your post, thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: