Skip to content

Instantly share code, notes, and snippets.

@rajraj
Forked from lest/gist:1517325
Created January 4, 2012 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajraj/1561091 to your computer and use it in GitHub Desktop.
Save rajraj/1561091 to your computer and use it in GitHub Desktop.
Ruby 1.9.3 patched with readline and libyaml under rbenv
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
cd ruby-1.9.3-p0
wget "https://gist.github.com/raw/1484985/3e9679a6fec73dacbcced2b1ce42ca642d85ccc0/cached_lp_sorted_lf.patch"
patch -p1 < cached_lp_sorted_lf.patch
./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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment