Skip to content

Instantly share code, notes, and snippets.

@ngpestelos
Created March 10, 2013 10:25
Show Gist options
  • Save ngpestelos/5128034 to your computer and use it in GitHub Desktop.
Save ngpestelos/5128034 to your computer and use it in GitHub Desktop.
ruby-2.0.0-p0 postinstall script for veewee
#!/bin/sh
# Install ruby 2.0
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
tar xvzf ruby-2.0.0-p0.tar.gz
cd ruby-2.0.0-p0
./configure --prefix=/opt/ruby CFLAGS="-O3 -funroll-loops -fomit-frame-pointer -pipe"
make
make install
cd ..
rm -rf ruby-2.0.0-p0
rm ruby-2.0.0-p0.tar.gz
# Install RubyGems
wget http://production.cf.rubygems.org/rubygems/rubygems-2.0.2.tgz
tar xvzf rubygems-2.0.2.tgz
cd rubygems-2.0.2
/opt/ruby/bin/ruby setup.rb
cd ..
rm -rf rubygems-2.0.2
# Install Bundler
/opt/ruby/bin/gem install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment