Skip to content

Instantly share code, notes, and snippets.

@petems
Created July 9, 2013 09:32
Show Gist options
  • Save petems/5956008 to your computer and use it in GitHub Desktop.
Save petems/5956008 to your computer and use it in GitHub Desktop.
Install Ruby 1.9.3 on Ubuntu without Rbenv/RVM
# Install Ruby 1.9.3
apt-get install -qq 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
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
update-alternatives --config ruby
update-alternatives --config gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment