Readline on RedHat 7.1 with Python 2.1

me kelly.gerber at mindspring.com
Wed Jul 18 15:26:50 EDT 2001


Roman Suzi wrote:

> Isn't Python already compiled with readline in RH7.1???
>
> If so, add
>
> .startpy
> import readline
> import rlcompleter
> readline.parse_and_bind("tab: complete")
> print "Realine loaded"
>
> to your homedir and put
>
> export PYTHONSTARTUP=.startpy
>
> into your .bash_profile
> (if you are using bash)
>
> Then re-login and try:
>
> $ python
>
> Readline loaded
> >>> import os.
> >>> os.
> Display all 155 possibilities? (y or n)
>
> as usual.
>
> > Thanks,
> > Kelly
>
> Sincerely yours, Roman A.Suzi
> --
>  - Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
>

I did not make myself clear. I am trying to compile the latest version Python
from source code. It will not compile the module, so I am not able to do what
you suggest becaue the module does not exist yet. See the answer from Nils. I
installed the readline-devel package, but now there is still a problem with
-ltermcap.

One step closer..........

Thanks,
Kelly






More information about the Python-list mailing list