Readline module in 1.6.8

I’m installing ruby 1.6.8 and the source distribution seems that it’s
missing these files:

ruby-1.6.8/ext/readline/readline.h
ruby-1.6.8/ext/readline/history.h

Without these, ruby-1.6.8/ext/readline/extconf.rb won’t create the
Makefile that I need to build the readline module.

Does anyone know what’s going on here? Did someone just forget put put
them in the tar ball?

Thanks for the help,
Daniel.

Does anyone know what's going on here?

libreadline is not installed on your system

Guy Decoux

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 libreadline.so is installed in /lib.

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.

Does anyone know what I’m doing wrong?

Thanks for the help,
Daniel.

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 :smiley:

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.

my libreadline.so is installed in /lib.

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.

Guy Decoux