Ruby-1.8.0 install issues on Mac OS X

Hi:

I am working on installing ruby-1.8.0 on Mac OS X 10.2.3,
but there seems to be two files that don’t want to install:

readline.bundle and libruby.dylib

I have readline installed, but ruby will not build the readline.bundle.
I have to copy readline.bundle from my lib/ruby/1.6/powerpc-darwin5.5.
After I do this, all works as expected.

Also, for some reason it wanted libruby.dylib in /sw/lib instead
of in the install directories lib.

I don’t have these type of problems on FreeBSD and it is not
clear why I should have them on Mac OS X. Could it be the install
program?

Any help would be appreciated.

Thanks

···


Jim Freeze

Anything that is good and useful is made of chocolate.

Jim Freeze wrote:

Hi:

I am working on installing ruby-1.8.0 on Mac OS X 10.2.3,
but there seems to be two files that don’t want to install:

readline.bundle and libruby.dylib

I have readline installed, but ruby will not build the readline.bundle.
I have to copy readline.bundle from my lib/ruby/1.6/powerpc-darwin5.5.
After I do this, all works as expected.

Also, for some reason it wanted libruby.dylib in /sw/lib instead
of in the install directories lib.

What happens if you comment out fink’s ‘source …’ line in your .tcshrc?

Dave

The response seems independent of the path and only on the
presence of libruby.dylib in /sw/lib/. Apparently it’s location
was hardcoded during the compile. Is this correct?

% irb
dyld: ruby can’t open library: /sw/lib/libruby.dylib (No such file or
directory, errno = 2)
Trace/BPT trap
% source .cshrc # add source /sw/bin/init.csh
% irb
dyld: ruby can’t open library: /sw/lib/libruby.dylib (No such file or
directory, errno = 2)
Trace/BPT trap

···

On Monday, 3 February 2003 at 12:33:19 +0900, Dave Thomas wrote:

Jim Freeze wrote:

Hi:

I am working on installing ruby-1.8.0 on Mac OS X 10.2.3,
but there seems to be two files that don’t want to install:

readline.bundle and libruby.dylib

I have readline installed, but ruby will not build the readline.bundle.
I have to copy readline.bundle from my lib/ruby/1.6/powerpc-darwin5.5.
After I do this, all works as expected.

Also, for some reason it wanted libruby.dylib in /sw/lib instead
of in the install directories lib.

What happens if you comment out fink’s ‘source …’ line in your .tcshrc?


Jim Freeze

If A equals success, then the formula is _A = _X + _Y + _Z. _X is work. _Y
is play. _Z is keep your mouth shut.
– Albert Einstein