How to statically link Python with ncurses and readline?

"Martin v. Löwis" martin at v.loewis.de
Tue Oct 25 14:26:22 EDT 2005


arve.knudsen at gmail.com wrote:
> That is, there are no longer any readline.so or _curses.so in lib-dynload, 
 > but instead they are added to Python's shared library dependencies.

What is "they" in that sentence? readline.so and _curses.so? I very much
doubt that - more likely, libreadline.so and libncurses.so are in
the dependencies

 > Any clue as to what's going on here would be much appreciated.

Instead of linking with -lncurses, link explicitly with
/usr/lib/libncurses.a; or else using -static as a linker flag.

Regards,
Martin



More information about the Python-list mailing list