compiling Python with readline

Maik Hertha maik.hertha at volkswagen.de
Wed Apr 3 01:08:59 EST 2002


Erik Price wrote:

>
> <quote source="Modules/Setup">
> readline -L /sw/lib/ readline.c -lreadline -ltermcap
> </quote>
>
> But this time my ./configure failed.
>
> My libreadline.* files are located in /sw/lib, they are 
> /sw/lib/libreadline.4.dylib, /sw/lib/libreadline.a, and 
> /sw/lib/libreadline.dylib.  I am guessing that I am giving the wrong 
> syntax for the -L option.  Can anyone see what I'm doing wrong here?
>
you should have a look on line 19 of Module/Setup:
------------>8---------

# Lines have the following structure:
#
# <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
#
# <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
# <cpparg> is anything starting with -I, -D, -U or -C
# <library> is anything ending in .a or beginning with -l or -L
# <module> is anything else but should be a valid Python
# identifier (letters, digits, underscores, beginning with non-digit)
#
-----------8<-----------
you should change your line to

readline readline.c -L/sw/lib -lreadline -ltermcap

then you should add your library path to LD_LIBRARY_PATH before 
execution (or ldconfig on linux).

m.

-- 

mit freundlichem Gruß /
best regards

Maik Hertha

--------------------------------------------------- h+h
EBSP Anwenderbetreuung, +49 5361 9-74950
Volkswagen AG / Brieffach 1721 / D-38436 Wolfsburg
http://ebsp.wob.vw.de              
maik.hertha at volkswagen.de
---------------------------------------------------
hartmann+hertha
it (beratung / entwicklung / support)
http://www.hartmann-hertha.de
mhertha at hartmann-hertha.de
--------------------------------------------------- h+h





More information about the Python-list mailing list