Skip to content

Instantly share code, notes, and snippets.

@kelmandor
Created July 17, 2013 08:56
Show Gist options
  • Select an option

  • Save kelmandor/6018950 to your computer and use it in GitHub Desktop.

Select an option

Save kelmandor/6018950 to your computer and use it in GitHub Desktop.
these are the steps i take for setting up rbenv on a new ubuntu vm. notice that with oh-my-zsh installed the bash_profile changes to zshrc.
sudo apt-get install libssl-dev zlib1g-dev
sudo apt-get install libreadline-dev
==========================================================================================
to switch from rvm to rbenv:
first call 'rvm implode'
and remove any mention of rvm from the ~/.profile, ~/.bash_profile, ~/.bashrc files
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
this reloads your shell and should not output anything if its working: exec $SHELL -l
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
the glorified: rbenv rehash
rbenv install 1.9.3-p327
rbenv global 1.9.3-p327
gem install bundler
to make sudo work with the ruby you need this link:
sudo ln -s /home/dkelman/.rbenv/shims/ruby /usr/bin/ruby
sudo ln -s /home/dkelman/.rbenv/shims/god /usr/bin/god
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment