Pedro P. Candel RSS

Archive

Jul
8th
Wed
permalink

Rebuild ruby readline due to Leopard Software update

Due to the recent Leopard ruby update, accents and other non ascii characters are never more available for irb. This is how to proceed to fix that:

$ locate libreadline
/usr/lib/libreadline.dylib
/usr/local/lib/libreadline.5.2.dylib
/usr/local/lib/libreadline.5.dylib
/usr/local/lib/libreadline.a
/usr/local/lib/libreadline.dylib

$ ruby --version
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]

svn co http://svn.ruby-lang.org/repos/ruby/tags/v1_8_6_287/ext/readline/ readline
curl http://pastie.textmate.org/pastes/168767/download | patch readline/extconf.rb

cd readline

ARCHFLAGS="-arch i386" ruby extconf.rb
make
sudo make install