Connecting to Oracle from an Intel Mac -- arch. conflicts

console is running inside irb, not ruby. You probably need to perform the same trick with irb executable as you did with ruby.


P.S. It is a useful trick to know...

Happy to see your problems are solved.

But for the archives:

By default there is only one ruby binary in Leopard - the one that
lives in /System/Library/Frameworks/Ruby.framework/Versions/Current/
The file /usr/bin/ruby is only a symlink to the canonical executable:

g5:~> ls -l `which ruby`
lrwxr-xr-x 1 root wheel 76 26 okt 23:15 /usr/bin/ruby -> ../../

The canonical file in /System/Library is the executable which needs to
be manipulated. It seems that on your system you had some other ruby
installed besides the original Leopard version.

And about irb: irb is a symlink to /System/Library script which is
executed by the canonical ruby directly (not via the /usr/bin/ruby,
but hardcoded /System/Library/blabla), so if you have some custom
version of ruby in /usr/bin, you also need to provide the
corresponding irb (and others, probably)...