Created
August 28, 2012 17:29
-
-
Save greggersh/3501146 to your computer and use it in GitHub Desktop.
Installing Ruby 1.9.3 on Ubuntu
This file contains 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
sudo apt-get install ruby1.9.1 ruby1.9.1-dev \ | |
rubygems1.9.1 irb1.9.1 ri1.9.1 rdoc1.9.1 \ | |
build-essential libopenssl-ruby1.9.1 libssl-dev zlib1g-dev | |
sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 400 \ | |
--slave /usr/share/man/man1/ruby.1.gz ruby.1.gz \ | |
/usr/share/man/man1/ruby1.9.1.1.gz \ | |
--slave /usr/bin/ri ri /usr/bin/ri1.9.1 \ | |
--slave /usr/bin/irb irb /usr/bin/irb1.9.1 \ | |
--slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.1 | |
# choose your interpreter | |
# changes symlinks for /usr/bin/ruby , /usr/bin/gem | |
# /usr/bin/irb, /usr/bin/ri and man (1) ruby | |
sudo update-alternatives --config ruby | |
sudo update-alternatives --config gem | |
# now try | |
ruby --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment