sudo apt-get update
sudo apt-get install libpq-dev # this is for gem install on ubuntu
sudo apt-get install postgresql postgresql-contrib
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
Xcode: xcode-select --install
Homebrew: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
sudo apt-get update
sudo apt-get install curl
Follow this guide. The instructions by 27/12/2016 is like following:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable --rails
Remember to add these line to .bashrc
file to have rvm and ruby funtioning
# RVM
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
https://github.com/moovweb/gvm
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)