Pedro P. Candel RSS

Archive

Jan
30th
Sun
permalink
Are you able to memory both? (Taken with Instagram at Espinardo, Murcia)

Are you able to memory both? (Taken with Instagram at Espinardo, Murcia)

Feb
22nd
Mon
permalink

And Rebuild Snow Leopard Ruby readline …

New operating system, same history: rebuilding Snow Leopard ruby readline to allow non ascii chars on irb:

curl -O ftp://ftp.cwru.edu/pub/bash/readline-6.1.tar.gz
tar xzvf readline-6.1.tar.gz
cd readline-6.1
./configure --prefix=/usr/local
make
sudo make install
cd ..

ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

svn co http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_72/ext/readline/ ruby-readline
cd ruby-readline/
curl http://pastie.textmate.org/pastes/836839/download | patch extconf.rb
ARCHFLAGS="-arch x86_64" ruby extconf.rb
make
sudo make install

$ irb
>> "Coño con las actualizaciones"
=> "Co\303\261o con las actualizaciones"
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