[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] Problems installing readline on OS X
From: |
Chet Ramey |
Subject: |
Re: [Bug-readline] Problems installing readline on OS X |
Date: |
Tue, 13 Feb 2007 09:27:49 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (Macintosh/20061207) |
Peter Michaux wrote:
> Hi,
>
> Hopefully this is the right place to ask. If not please redirect me.
>
> I have no problem installing readline 5.1 on my Intel/OS X 10.4
> machine. Unfortunately my boss has a big problem on his PowerPC/OS X
> 10.4 machine and so can't run Ruby or Rails. He has gcc 4.0.1
> installed. Below are the commands I had him run with which that many
> Mac users have had success. The last line says something about
> "ldconfig" which isn't even on OS X 10.4 and if it was I'd probably
> want to know what it does before running it.
I'm not sure that there's any problem with the readline-5.1 install. You
can verify that by running
ls -l /usr/local/lib/libread*
ls -l /usr/local/lib/libhist*
The problem is probably that, for some unfathomable reason, Apple wrote
a virtually non-functional readline "replacement" module for libedit and
shipped it in /usr/lib. Unless you specify /usr/local/lib when linking
ruby, and relink it now that you've got a genuine version of readline
installed, it will use /usr/lib/libreadline.dylib and fail to run.
I have run into that problem already. Bash contains special config code
to ignore /usr/lib/libreadline.dylib when built on OS X.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/