Created
January 27, 2014 16:22
-
-
Save doole/8651724 to your computer and use it in GitHub Desktop.
Ruby 2.0.0-p353 build script for Debian Wheezy
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
RUBY="ruby-2.0.0-p353" | |
GEMS="rubygems-2.1.11" | |
# Update system | |
apt-get update && sudo apt-get upgrade | |
# Install build requirements | |
apt-get install -y build-essential autoconf | |
# These deps will support common libraries like yaml and give you the best irb experience. | |
apt-get install -y bison zlib1g-dev libssl-dev libreadline6-dev libncurses5-dev file libyaml-dev libxslt1-dev libxml2-dev openssl | |
# Create a directory for our source code | |
mkdir -p /usr/local/src && cd /usr/local/src | |
# Grab Ruby package and expand | |
wget -c ftp://ftp.ruby-lang.org/pub/ruby/2.0/$RUBY.tar.gz | |
tar xzf $RUBY.tar.gz | |
cd $RUBY | |
# Build Ruby! | |
./configure --prefix=/usr/local --docdir=/usr/share/doc/ruby-2.0.0 --enable-shared && make | |
make install | |
# Get Ruby Gems | |
cd /usr/local/src | |
wget -c http://production.cf.rubygems.org/rubygems/$GEMS.tgz | |
tar xzf $GEMS.tgz | |
cd $GEMS | |
ruby setup.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment