-
-
Save snarlysodboxer/5606782 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# The version of Ruby to be installed | |
ruby_ver="1.9.3-p429" | |
# The base path to the Ruby | |
ruby_home="/usr/local" | |
# Enable truly non interactive apt-get installs | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get -y install git-core | |
apt-get -y install curl | |
apt-get -y install build-essential | |
apt-get -y install zlib1g-dev libssl-dev libreadline-dev | |
apt-get -y install libxml2-dev libxslt-dev # needed by nokogiri/capybara | |
# Use ruby-build to install Ruby | |
clone_dir=/tmp/ruby-build-$$ | |
git clone https://github.com/sstephenson/ruby-build.git $clone_dir | |
$clone_dir/bin/ruby-build "$ruby_ver" "$ruby_home" | |
rm -rf $clone_dir | |
unset clone_dir |
This file contains hidden or 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
apt-get install -y build-essential wget zlib1g-dev libssl-dev libffi-dev libreadline-dev libxslt-dev libxml2-dev | |
cd /usr/src | |
wget http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2012.02.tar.gz | |
tar xzf ruby-enterprise-1.8.7-2012.02.tar.gz && cd ruby-enterprise-1.8.7-2012.02/source | |
wget https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/tcmalloc.patch | |
wget https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/stdout-rouge-fix.patch | |
patch -p1 < tcmalloc.patch | |
patch -p1 < stdout-rouge-fix.patch | |
cd .. && ./installer --auto /usr/local --dont-install-useful-gems --no-dev-docs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment