Last active
December 21, 2015 18:48
-
-
Save rodacato/6349611 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
--- | |
:verbose: true | |
gem: --no-ri --no-rdoc | |
:update_sources: true | |
:sources: | |
- http://rubygems.org | |
:backtrace: false | |
:bulk_threshold: 1000 | |
:benchmark: false |
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/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