Mysolution.lk

Mysolution.lk

Share

Whether you're looking for managed IT services or a channel or white label partner we've got a solution that's right for you

How to install Ruby 2.1.4 on Ubuntu 14.04 23/03/2016

How to install Ruby 2.1.4 on Ubuntu 14.04 First of all, install the prerequisite libraries:

sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential
libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3
libxml2-dev libxslt1-dev libcurl4-openssl-dev
python-software-properties libffi-dev

Then install rbenv, which is used to install Ruby:

cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone git://github.com/sstephenson/ruby-build.git
~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

rbenv install 2.2.0
rbenv global 2.2.0
ruby -v

Then (optional) tell Rubygems to not install local documentation:

echo "gem: --no-ri --no-rdoc" > ~/.gemrc

Credits: http://ift.tt/1wFwCwc

*Warning!!!* There are issues with Gnome-Shell. See comment below.

Ameerwww.linuxmails.com | [email protected],KSA

Want your business to be the top-listed Computer & Electronics Service in Colombo?
Click here to claim your Sponsored Listing.

Address


Colombo