Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nebiros
Created March 24, 2012 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nebiros/2186712 to your computer and use it in GitHub Desktop.
Save nebiros/2186712 to your computer and use it in GitHub Desktop.
how to install ruby's rbenv in ubuntu
$ sudo aptitude update
$ sudo aptitude install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libncurses5-dev automake libtool bison subversion
$ cd
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
$ git clone git://github.com/sstephenson/ruby-build.git
$ cd ruby-build
$ sudo ./install.sh
$ rbenv install 1.9.3-p125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment