compiling Python 2.7.1 with readline module fails on Debian (Virtualbox)
Benedict Verheyen
benedict.verheyen at gmail.com
Thu Dec 23 22:01:17 EST 2010
On 24/12/2010 2:16, Benedict Verheyen wrote:
> On 23/12/2010 20:55, Stefan Sonnenberg-Carstens wrote:
>>> <snip>
I finally succeeded.
I built ncurses and installed it to $HOME/usr/local
./configure --with-shared --enable-termcap --prefix=$HOME/usr/local
make
make install
Then i built readline
./configure --enable-shared --prefix=$HOME/usr/local
make
make install
I edited /etc/ld.so.conf.d/libc.conf
and added $HOME/usr/local
Next: ldconfig -v
Next Python, configure doesn't find readline even if
LD_LIBRARY_PATH is set.
I tried export LDFLAGS="-L$HOME/usr/local"
Then Python builds both readline and ncurses and works ok.
Finally :)
I'm not sure if the ldconfig is necessary.
Regards,
Benedict
More information about the Python-list
mailing list