Install rbenv and ruby-build on Ubuntu.
-
-
Save sxua/3928537 to your computer and use it in GitHub Desktop.
Install rbenv and ruby-build on Ubuntu
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
#!/bin/sh | |
# Install developer tools | |
sudo apt-get install git build-essential libreadline-dev libssl-dev | |
# Install ruby-build system-widely | |
git clone git://github.com/sstephenson/ruby-build.git /tmp/ruby-build | |
cd /tmp/ruby-build | |
./install.sh |
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
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
source ~/.bashrc | |
# Install and enable ruby-1.9.3-p286 | |
rbenv install 1.9.3-p286 && rbenv global 1.9.3-p286 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment