Created
January 30, 2012 10:20
-
-
Save haarts/1703721 to your computer and use it in GitHub Desktop.
rbenv install and system wide install on Ubuntu 10.04 LTS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# And now install rbenv | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile | |
echo 'eval "$(rbenv init -)"' >> .bash_profile | |
exec | |
# Install ruby-build | |
pushd /tmp | |
git clone git://github.com/sstephenson/ruby-build.git | |
cd ruby-build | |
./install.sh | |
popd | |
# Install Ruby 1.9.2-p290 | |
rbenv install 1.9.2-p290 | |
rbenv global 1.9.2-p290 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment