[Baypiggies] Python2.5 and readline
wescpy at gmail.com
Tue Oct 10 03:39:25 CEST 2006
> I installed Python2.5 and 'import readline' gives an error.
> Even if I try using my old python executable
> (python2.4) which used to have this functionality,
> I get the "cannot import readline" error.
> From the docs, it looks like this module should
> be automatically available for unix systems.
i've had this problem lately as well, during the 2.4 and 2.5
timeframe. i believe the systems that i have been using (a variety of
Linux) *did* have readline installed, but ./configure hadn't been able
to find the libreadline.so file. unfortunately my external box is
down at the moment so i can't give you the exact recipe, but i
basically had to manually create/add/update a CPP_LIBRARY_PATH(sp?)
and LD_LIBRARY_PATH environment variables so that configure could pick
up the right directory containing the readline library and its header
hope this helps!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
More information about the Baypiggies