Skip to content

Instantly share code, notes, and snippets.

@allomov-altoros
Created September 14, 2015 12:37
Show Gist options
  • Save allomov-altoros/a2188ac8de76d633ba61 to your computer and use it in GitHub Desktop.
Save allomov-altoros/a2188ac8de76d633ba61 to your computer and use it in GitHub Desktop.
sudo apt-get udpate
sudo apt-get install -y git build-essential
sudo apt-get install -y vim tmux
apt-get install -y git libssl-dev zlib1g-dev libssl-dev libreadline6-dev libxml2-dev libsqlite3-dev
apt-get install -y libruby
apt-get install -y libxml2 libxslt
mkdir -p ~/work/ruby
pushd ~/work/ruby
RUBY_VERSION=ruby-2.1.7
RUBY_ARCHIVE=$RUBY_VERSION.tar.gz
wget https://cache.ruby-lang.org/pub/ruby/2.1/$RUBY_ARCHIVE
tar -xzvf $RUBY_ARCHIVE
pushd $RUBY_VERSION
./configure
make
sudo make install
popd
wget -O ffi-1.9.3.tar.gz https://github.com/ffi/ffi/archive/1.9.3.tar.gz
tar -xzvf ffi-1.9.3.tar.gz
pushd ffi-1.9.3
# broken patch file here
curl -L https://gist.githubusercontent.com/allomov-altoros/cad38f3e988f5fcaa23c/raw/7338512a753ac452e6a2db72e13c4f161ce22553/ffi-power.patch > ffi-power.patch
patch --ignore-whitespace -p1 < ffi-power.patch
bundle install
config_guess_path=`find . -name config.guess`
curl "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" > "${config_guess_path}"
config_sub_path=`find . -name config.sub`
rake
popd
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment