Install

Hi

I just built ruby-1.8.0 on Mac OS X and it seemed to build ok,
but when I run irb I get the err message:

irb
dyld: ruby can’t open library: /sw/lib/libruby.dylib
(No such file or directory, errno = 2)
Trace/BPT trap

What I don’t understand is that it built libruby.dylib and put
it in the install directory, but it did not look there.
Go figure. I really don’t understand how these dylibs
are searched for.

Anyway, I made a softlink to the file in /sw/lib and irb
now works.

Can someone explain to me why this error occured?

Some of my install options are below:

C=“gcc -I/sw/include -I$DESTDIR/lib”; export CC
CXX=“g++ -I/sw/include -I$DESTDIR/lib”; export CXX
LDFLAGS="-L/sw/lib"; export LDFLAGS
CFLAGS=’-g -O2 -fno-common’

cd $SRCPATH
autoconf

./configure --prefix=$DESTDIR --enable-shared

Thanks

···


Jim Freeze

Nobody wants constructive criticism. It’s all we can do to put up with
constructive praise.