Skip to content

Instantly share code, notes, and snippets.

@edymerchk
Last active August 29, 2015 13:56
Show Gist options
  • Save edymerchk/9229732 to your computer and use it in GitHub Desktop.
Save edymerchk/9229732 to your computer and use it in GitHub Desktop.

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment