Skip to content

Instantly share code, notes, and snippets.

@rodacato
Last active December 21, 2015 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodacato/6349611 to your computer and use it in GitHub Desktop.
Save rodacato/6349611 to your computer and use it in GitHub Desktop.
Install Ruby 1.9.3-p286 on Ubuntu 12.04 LTS
---
:verbose: true
gem: --no-ri --no-rdoc
:update_sources: true
:sources:
- http://rubygems.org
:backtrace: false
:bulk_threshold: 1000
:benchmark: false
#!/bin/sh
echo -e '\n\n=============== Installing YAML'
mkdir -p ~/src
cd ~/src
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
tar xzf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure --prefix=/usr/local
make
sudo make install
cd ~/src
echo -e '\n\n=============== Installing Ruby 1.9.3'
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz
tar xzf ruby-1.9.3-p327.tar.gz
cd ruby-1.9.3-p327
./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib
make
sudo make install
curl https://gist.github.com/rodacato/6349611/raw/b6aeaa4e352384b6af88708b0572cddb11f22d9a/gemrc > ~/.gemrc
sudo gem install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment