-
-
Save bartimaeus/2845824 to your computer and use it in GitHub Desktop.
Install Ruby 1.9.3-p286 on Ubuntu 12.04 LTS
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
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libxml2-dev libxslt-dev libreadline6-dev libyaml-dev | |
# apt-get -y install libmysqlclient-dev # uncomment for mysql support | |
cd /tmp | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz | |
tar -xvzf ruby-1.9.3-p286.tar.gz | |
cd ruby-1.9.3-p286/ | |
./configure --prefix=/usr/local | |
make | |
make install |
The previous command will install ruby 1.9.3-p194.
This command will install ruby 1.9.3-p286: curl -L http://goo.gl/cvGtc | sh
thank you
Thanks
Thanks!
Other think that you can do is remplace the final command make install for checkinstall --type=debian --install=yes --fstrans=no --pakdir='~' (previous you will need to add checkinstall in package list)
This line will prepared a dpkg and will be easy if someone need to remove or upgrade installation.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install as root user via:
curl -L http://goo.gl/mukEu | sh