[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] installing rlfe on OS X 10.4.11

From: Chet Ramey
Subject: Re: [Bug-readline] installing rlfe on OS X 10.4.11
Date: Sun, 27 Apr 2008 16:59:53 -0400
User-agent: Thunderbird (Macintosh/20080213)

Peter Michaux wrote:

I've been trying to install the rlfe program on my Mac OS X 10.4.11
and am running into an error when I run make.

mkdir ~/Desktop/src
cd ~/Desktop/src
curl -O ftp://ftp.cwru.edu/pub/bash/readline-5.2.tar.gz
tar xvzf readline-5.2.tar.gz
cd readline-5.2
sudo make install

It seems at this stage that readline is installed but the "sudo make
install" ends with the following

make[1]: Entering directory `/Users/peter/Desktop/src/readline-5.2/shlib'
/bin/sh ../support/mkdirs /usr/local/lib
/bin/sh ../support/shlib-install -O darwin8.11.1 -d /usr/local/lib -b
/usr/local/bin -i "/usr/bin/install -c -m 644" libhistory.5.2.dylib
/bin/sh ../support/shlib-install -O darwin8.11.1 -d /usr/local/lib -b
/usr/local/bin -i "/usr/bin/install -c -m 644" libreadline.5.2.dylib
install: you may need to run ldconfig
make[1]: Leaving directory `/Users/peter/Desktop/src/readline-5.2/shlib'


Then I try to install the rlfe example

cd ~/Desktop/src/readline-5.2/examples/rlfe

The output from the "make" command ends with

/usr/bin/ld: warning multiple definitions of symbol _history_search
definition of _history_search
/usr/local/lib/libhistory.dylib(histsearch.so) definition of _history_search
/usr/bin/ld: Undefined symbols:
collect2: ld returned 1 exit status
make: *** [rlfe] Error 1

Any ideas what I can do to make this work?

Compile it and link against the static libreadline.a in the build
directory.  You could try adding "LDFLAGS='-L /usr/local/lib' to the
`make' command, but that's not guaranteed to work, since Mac OS X
insists on linking against its own incomplete readline "emulation" in
/usr/lib in many circumstances.  I've had to change the bash and
readline makefiles to link against absolute pathnames on Mac OS X
because of the linker behavior.


``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/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]