Skip to content

Instantly share code, notes, and snippets.

@neocsr
Created January 24, 2011 03:16
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 neocsr/792772 to your computer and use it in GitHub Desktop.
Save neocsr/792772 to your computer and use it in GitHub Desktop.
Ruby compilation with readline support (Japanese friendly).
Fixing Snow Leopard Console
http://www.sarahmei.com/blog/2010/01/08/travails-with-readlin/
http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard
curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz
cd ~/src
curl -O ftp://ftp.gnu.org/gnu/readline/readline-6.0.tar.gz
tar xzvf readline-6.0.tar.gz
cd readline-6.0
./configure --prefix=/usr/local
make
make install
curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz
tar xzvf ruby-1.8.7-p174.tar.gz
cd ruby-1.8.7-p174
make clean
autoconf
#./configure --enable-shared --with-readline-dir=/usr/local/Cellar
#./configure --enable-shared --with-readline-dir=/usr/local/Cellar/readline/6.1/lib
#./configure --enable-shared --with-readline-dir=/usr/local
./configure --enable-shared --enable-pthread --with-readline-dir=/usr/local
make
make install
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
tar xzvf rubygems-1.3.7.tgz
cd rubygems-1.3.7
/usr/local/bin/ruby setup.rb
curl -O http://files.rubyforge.vm.bytemark.co.uk/rubygems/rubygems-1.3.5.tgz
tar xzvf rubygems-1.3.5.tgz
cd rubygems-1.3.5
/usr/local/bin/ruby setup.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment