Compiling python 2.2 with history command line support

Gerhard Häring gh_pythonlist at gmx.de
Wed Jan 9 15:36:41 EST 2002


Le 09/01/02 à 19:31, Andrew MacIntyre écrivit:
> On 8 Jan 2002, Chris Reay wrote:
> 
> > > I compiled python 2.2 on a debian 2.2 (too) with the curses support but the
> > > command line mode has no advanced edition support (history...)
> > > What did I miss ?
> >
> > You need to download the libreadline (and libreadline_dev?) packages.
> > apt-get install or dselect; you know the drill. Then rebuild python,
> > of course.
> 
> Why do you need to rebuild Python?  Last time I looked the readline
> module works fine as a loadable module, and if available is autoloaded.

Because the readline module won't be built if the readline headers
aren't available at compile time. The same is true for most other
modules in the Python source tree (can't fint headers -> won't compile).

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    public key at homepage
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))




More information about the Python-list mailing list