Installation guide for Ruby stack in Ubuntu
Open your terminal and copy and paste the following commands:
This will install: git, ruby and zsh:
sudo apt-get update
sudo apt-get install build-essential git zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev libcurl4-gnutls-dev librtmp-dev curl -y
sudo apt-get install zsh -y
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
zsh
chsh -s /bin/zsh # This will set zsh as you default shell
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
exit #Exit zsh
zsh #Enter again to zsh
rbenv install 1.9.3-p374
rbenv global 1.9.3-p374
rbenv rehash
Postgrest: