Thanks, I’m making progress.
I now have the readline lib and includes installed.
Now ruby can find the includes fine, but it can’t find the library itself.
ruby extconf.rb
[snip]
checking for readline/readline.h… yes
checking for readline/history.h… yes
checking for readline() in -lreadline… no
My /etc/ld.so.conf was missing ‘/lib’ and ‘/usr/lib’, so I added them and
ran /sbin/ldconfig, but this didn’t make any difference. Ruby still can’t
find readline() in libreadline.so
Adding “/lib:/usr/lib” to LD_LIBRARY_PATH didn’t help either.
last night when trying to install ruby from fink, I had a similar
problem (though not with readline). when doing “ruby install.rb setup”
it couldnt find libruby with -lruby
the reason was a .dylib had been created. so maybe check that out.
also, I am still interested in compiling ruby standalone with readline
support, either from the mac os x framework or the readline library I
built with fink. in fink ruby version is still 1.6.7-3 and I’d like to
try the latest versions with readline. a small thing, but irb is
annoying without it
digibren
···
On Saturday, January 4, 2003, at 12:58 PM, Daniel Carrera wrote:
Thanks, I’m making progress.
I now have the readline lib and includes installed.
Now ruby can find the includes fine, but it can’t find the library
itself.
Well, difficult to say with only these indications but librealines depend
on libncurses, try
ldd /lib/libreadline.so
to see if all libraries are installed
My /etc/ld.so.conf was missing '/lib' and '/usr/lib', so I added them and
ran /sbin/ldconfig, but this didn't make any difference. Ruby still can't
find readline() in libreadline.so
You don't need this /lib are /usr/lib are always searched.