Skip to content

Instantly share code, notes, and snippets.

@bartimaeus
Forked from ryanb/chef_solo_bootstrap.sh
Created May 31, 2012 19:55
Show Gist options
  • Save bartimaeus/2845824 to your computer and use it in GitHub Desktop.
Save bartimaeus/2845824 to your computer and use it in GitHub Desktop.
Install Ruby 1.9.3-p286 on Ubuntu 12.04 LTS
#!/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
@bartimaeus
Copy link
Author

Install as root user via: curl -L http://goo.gl/mukEu | sh

@bartimaeus
Copy link
Author

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

@blakefrederick
Copy link

thank you

@Shommy
Copy link

Shommy commented Jan 15, 2014

Thanks

@nachommm
Copy link

nachommm commented Apr 5, 2014

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