Skip to content

Instantly share code, notes, and snippets.

@smgt
Created October 30, 2012 06:38
Show Gist options
  • Select an option

  • Save smgt/3978667 to your computer and use it in GitHub Desktop.

Select an option

Save smgt/3978667 to your computer and use it in GitHub Desktop.
Install Ruby 1.9.3-p286 when building a VeeWee
# 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
@smgt

smgt commented Oct 30, 2012

Copy link
Copy Markdown
Author

This if for Debian Squeeze.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment