install readline 5.1

Hi,

I am following this article on how to install ruby and gems :
http://hivelogic.com/articles/2005/12/01/rubyrails_lighttpd_mysqltiger

I know that there will be problems later on with Xcode other than version 2.0 (ruby.h will be located elsewhere due to universal binaries) so I use Xcode 2.0 (from my Tiger DVD)

I try to install readline 5.1 on my system (after a clean install) and all I get is
this:

/bin/sh ../support/mkdirs /usr/local/lib
/bin/sh ../support/shlib-install -O darwin8.5.0 -d /usr/local/lib -b /usr/local/bin -i "/usr/bin/install -c -m 644" libhistory.5.1.dylib
/bin/sh ../support/shlib-install -O darwin8.5.0 -d /usr/local/lib -b /usr/local/bin -i "/usr/bin/install -c -m 644" libreadline.5.1.dylib
install: you may need to run ldconfig

As far as I know MAC OS X does not need ldconfig.....but I am not sure

No matter what I do,readline will not install....

I have not found anything of use to resolve this issue.....



DP 2GHz G5 (PPC 970 (2.2)) Mac OS X (10.4.3) IBook

Posted on Mar 18, 2006 10:43 AM

Reply
9 replies

Mar 19, 2006 2:48 AM in response to Gato con Botas

You are right in that Mac OS X does not "need" ldconfig; the message at the end is just a hint for people to remember using ldconfig on systems that do need it.

What you show looks ok to me -- what makes you think that it wasn't installed successfully? Are the two .dylibs not copied to /usr/local/lib?


Quad G5 / Mini G4 / PB15 G4 Mac OS X (10.4.5)

Mar 30, 2006 9:47 AM in response to Gato con Botas

Ok, I just downloaded the readline-5.1 sources and then did a

./configure --prefix=/usr/local
make
sudo make install

which produced a few errors regarding the documentation, but the library and the include files ended up where expected, and the included examples work too, even when manually linked against the dynamic libraries in /usr/local/lib.

The .old libraries look as if they are the remains of a later, failed installation process; what happens when you remove the .old suffix?

The error message now looks as if it came from something Ruby related, not from readline itself; which would be likely if the original readline installation failed.

I am using Apple gcc 5247 on 10.4.5, and just to be sure I compiled readline again, this time without all the Fink-installed software in my $PATH, and it seemed to work too. (Just to be extra sure I compiled gnuplot 4.0 against it and again it works).

Now the question is, does your setup differ from mine in any way that breaks readline, or is Ruby not picking up readline correctly? Perhaps you could try to install readline again just with the three commands above, ignoring all errors? Did you check where Ruby even looks for readline?

Sorry I can't help more other than to say that it works here; and of course it could be anything different on your system that happens to break "something".


Quad G5 / Mini G4 / PB15 G4 Mac OS X (10.4.5)

Mar 31, 2006 4:00 AM in response to Cohi

My installation is identical.

Yes, the error message is ruby related;
Ruby's IRB is supposed to use readline (tab completion feature)
Ruby was compiled with this feature;
( ./configure --prefix=/usr/local --enable-pthread --with-readline-dir=/usr/local )
readline was installed before the installation of Ruby

No there was no failed installation;I did the install on a clean install of Tiger.

Due to a problem with the relocation of some header-files (universal binaries) in Xcode >2.0 I have not installed the latest X-Code Version.
Even though I know how to resolve this issue I chose to stick with X-Code 2.0.

thanks for your help

DP 2GHz G5/4.5Gb memory/23" Cinema / iBook/LaCie 200Gb/WinXP Laptop/SGI Octane

Mac OS X (10.4.5)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

install readline 5.1

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.