Skip to content

Instantly share code, notes, and snippets.

@lest
Created December 24, 2011 13:22
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save lest/1517325 to your computer and use it in GitHub Desktop.
Save lest/1517325 to your computer and use it in GitHub Desktop.
Ruby 1.9.3 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-p125
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-p125
make -j 2
make install
cd ..
wget "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz"
tar xf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125
./configure --prefix=$HOME/.rbenv/versions/1.9.3-p125 --with-opt-dir=$HOME/.rbenv/versions/1.9.3-p125 --with-readline-dir=$HOME/.rbenv/versions/1.9.3-p125 --disable-install-doc
make -j 2
make install
@kimf
Copy link

kimf commented Nov 12, 2012

CONFIGURE_OPTS=--with-openssl-dir=brew --prefix openssl rbenv install 2.0.0-preview1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment