-
-
Save leehambley/f9038e6ce68c90eb6d93 to your computer and use it in GitHub Desktop.
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
wget "ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz" | |
tar xf readline-6.2.tar.gz | |
cd readline-6.2 | |
./configure --prefix=$HOME/.rbenv/versions/1.9.3-p0-patched | |
make -j 2 | |
make install | |
cd .. | |
wget "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz" | |
tar xf yaml-0.1.4.tar.gz | |
cd yaml-0.1.4 | |
./configure --prefix=$HOME/.rbenv/versions/1.9.3-p0-patched | |
make -j 2 | |
make install | |
cd .. | |
wget "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz" | |
tar xf ruby-1.9.3-p0.tar.gz | |
mkdir -p $HOME/.rbenv/sources | |
mv ruby-1.9.3-p0 $HOME/.rbenv/sources/ | |
cd !$ | |
wget --no-check-certificate "https://gist.github.com/raw/1484985/3e9679a6fec73dacbcced2b1ce42ca642d85ccc0/cached_lp_sorted_lf.patch" | |
patch -p1 < cached_lp_sorted_lf.patch | |
wget --no-check-certificate "http://github.com/ruby/ruby/pull/47.diff" | |
git apply 47.diff | |
./configure --prefix=$HOME/.rbenv/versions/1.9.3-p0-patched --with-opt-dir=$HOME/.rbenv/versions/1.9.3-p0-patched --with-readline-dir=$HOME/.rbenv/versions/1.9.3-p0-patched --disable-install-doc | |
make -j 2 | |
make install | |
gem insatll linecache19 -- --with-ruby-include=$(echo $HOME/.rbenv/sources/ruby-1.9.3-p0/) | |
gem insatll ruby-debug-base19 -- --with-ruby-include=$(echo $HOME/.rbenv/sources/ruby-1.9.3-p0/) | |
gem insatll ruby-deubg19 -- --with-ruby-include=$(echo $HOME/.rbenv/sources/ruby-1.9.3-p0/) | |
gem install bundler --pre |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment