Install Ruby on Rails on Ubuntu

Add into /etc/environment

PATH="(......):/var/lib/gems/1.8/bin"
After editing it, run below bash
sudo apt-get install ruby-full -y
sudo apt-get install build-essential -y
sudo apt-get install git-core -y

sudo apt-get install rubygems
PATH=$PATH:/var/lib/gems/1.8/bin

sudo gem install rubygems-update
sudo su -c update_rubygems

sudo gem install rails
sudo bundle install

I’m getting error when running sudo gem install mysql, but it totally fixed when running sudo bundle install.
Source: link

Advertisements