Created
December 17, 2012 11:01
-
-
Save riipandi/4317451 to your computer and use it in GitHub Desktop.
Ruby 1.9.2 Installer Ubuntu 10.04
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
#!/bin/bash | |
cd /tmp | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz | |
tar xvzf ruby-1.9.2-p290.tar.gz | |
cd ruby-1.9.2-p290 | |
./configure --prefix=/usr\ | |
--program-suffix=1.9.2\ | |
--with-ruby-version=1.9.2\ | |
--disable-install-doc | |
make | |
sudo checkinstall -D -y\ | |
--fstrans=no\ | |
--nodoc\ | |
--pkgname='ruby1.9.2'\ | |
--pkgversion='1.9.2-p290'\ | |
--provides='ruby'\ | |
--requires='libc6,libffi5,libgdbm3,libncurses5,libreadline5,openssl,libyaml-0-2,zlib1g'\ | |
[email protected] | |
sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.2 500 \ | |
--slave /usr/bin/ri ri /usr/bin/ri1.9.2 \ | |
--slave /usr/bin/irb irb /usr/bin/irb1.9.2 \ | |
--slave /usr/bin/erb erb /usr/bin/erb1.9.2 \ | |
--slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.2 | |
sudo update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.9.2 500 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment