Skip to content

Instantly share code, notes, and snippets.

@mariomartinezsz
Last active September 23, 2015 05:02
Show Gist options
  • Select an option

  • Save mariomartinezsz/e81d60371a4b435cb765 to your computer and use it in GitHub Desktop.

Select an option

Save mariomartinezsz/e81d60371a4b435cb765 to your computer and use it in GitHub Desktop.
Installing Ruby On Rails on Ubuntu 14.04
#Sources:
# https://gorails.com/setup/ubuntu/14.04
# https://github.com/sstephenson/rbenv
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
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
rbenv install 2.2.3
rbenv global 2.2.3
ruby -v
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
gem install bundler
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
gem install rails -v 4.2.4
rails -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment