Created
October 30, 2012 06:38
-
-
Save smgt/3978667 to your computer and use it in GitHub Desktop.
Install Ruby 1.9.3-p286 when building a VeeWee
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
# Install Ruby from source | |
apt-get -y install curl bzip2 unzip | |
r_ver=1.9.3-p286 | |
curl -o /tmp/ruby-${r_ver}.tar.bz2 \ | |
"ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-${r_ver}.tar.bz2" | |
(cd /tmp && tar -jxvf /tmp/ruby-${r_ver}.tar.bz2 && \ | |
cd ruby-${r_ver} && ./configure --prefix=/usr/local && \ | |
make && make install) | |
rm -rf /tmp/ruby-${r_ver} /tmp/ruby-${r_ver}.tar.bz2 | |
# Install Rubygems from source | |
rg_ver=1.8.24 | |
curl -o /tmp/rubygems-${rg_ver}.zip \ | |
"http://production.cf.rubygems.org/rubygems/rubygems-${rg_ver}.zip" | |
(cd /tmp && unzip rubygems-${rg_ver}.zip && \ | |
cd rubygems-${rg_ver} && ruby setup.rb --no-format-executable) | |
rm -rf /tmp/rubygems-${rg_ver} /tmp/rubygems-${rg_ver}.zip | |
gem update --system |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This if for Debian Squeeze.