[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] readline egg (OS X 10.6.6 / Chicken 4.6.0)
From: |
David Dreisigmeyer |
Subject: |
Re: [Chicken-users] readline egg (OS X 10.6.6 / Chicken 4.6.0) |
Date: |
Wed, 26 Jan 2011 06:59:42 -0500 |
This version of Chicken is not from Macports, but readline is. I had
tried various CSC_OPTIONS in my .profile, e.g.:
export CSC_OPTIONS="-L/opt/local/lib -I/opt/local/include"
export CSC_OPTIONS="-L/opt/local/lib -I/opt/local/include/readline"
and also using the -rpath flag after your suggestion. None of these
worked though, and I always received the error:
Error: This extension requires GNU readline. GNU readline may be
found at ftp://ftp.gnu.org/pub/gnu/readline
For more information, please consult
http://chicken.wiki.br/readline#Installation%20problems.
On Wed, Jan 26, 2011 at 6:10 AM, Peter Bex <address@hidden> wrote:
> On Wed, Jan 26, 2011 at 06:02:12AM -0500, David Dreisigmeyer wrote:
>> Using Macports, I had to do the following in order to get the readline
>> egg to install:
>>
>> $ sudo ln -s /opt/local/lib/libreadline.dylib /usr/local/lib/
>> $ sudo ln -s /opt/local/include/readline/ /usr/local/include/readline
>>
>> The procedure on the wiki didn't work.
>
> The procedure on the wiki *should* work if you're also using Chicken
> from Macports. By default, Chicken adds the PREFIX where it is
> installed to the library search path.
>
> If you wish to install eggs that link against libraries from elsewhere,
> it's better to use CSC_OPTIONS. You shouldn't need to mess around
> with symlinks.
>
> I don't have an OS X box to test it on but something like this should
> do the trick:
>
> CSC_OPTIONS="-L/usr/local/lib -rpath /usr/local/lib -I/usr/local/include"
> chicken-install readline
>
> Cheers,
> Peter
> --
> http://sjamaan.ath.cx
> --
> "The process of preparing programs for a digital computer
> is especially attractive, not only because it can be economically
> and scientifically rewarding, but also because it can be an aesthetic
> experience much like composing poetry or music."
> -- Donald Knuth
>