Skip to content

Instantly share code, notes, and snippets.

@hdemon
Created March 17, 2012 13:48
Show Gist options
  • Save hdemon/2059302 to your computer and use it in GitHub Desktop.
Save hdemon/2059302 to your computer and use it in GitHub Desktop.
Installing ruby with rbenv
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv
echo 'eval "$(rbenv init -)"' >> ~/.zshenv
exec $SHELL
git clone git://github.com/sstephenson/ruby-build.git
cd ruby-build
sudo ./install.sh
sudo aptitude -y install \
build-essential \
bison \
openssl \
libreadline6 \
libreadline6-dev \
git-core \
zlib1g \
zlib1g-dev \
libssl-dev \
libyaml-dev \
libsqlite3-0 \
libsqlite3-dev \
sqlite3 \
libxml2-dev \
libxslt-dev \
autoconf \
libc6-dev \
ncurses-dev \
automake
cd
rbenv install 1.9.3-p125
rbenv install 1.9.2-p290
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment