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
May
5th
Tue
permalink
Jan
2nd
Fri
permalink

Leopard MySQL related gems goodies

I know I will forget this for the next time I might need it …

ARCHFLAGS="-arch i386"  gem install do_mysql  -- --with-mysql-dir=/usr/local/mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
sudo install_name_tool -change /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib /usr/local/mysql/lib/libmysqlclient.15.dylib /Library/Ruby/Gems/1.8/gems/do_mysql-0.9.11/lib/do_mysql_ext.bundle

Use the proper gem version, of course.

Nov
8th
Sat
permalink
Oct
22nd
Wed
permalink
permalink
Oct
5th
Sun
permalink
Nothing is certain except death, taxes, and bugs in software.
Oct
1st
Wed
permalink
Sep
24th
Wed
permalink
Sep
1st
Mon
permalink