[Pythonmac-SIG] readline: where and how installed?
Bob Ippolito
bob at redivi.com
Wed Apr 12 23:09:44 CEST 2006
On Apr 12, 2006, at 1:57 PM, Michael Broe wrote:
> I'm having an issue using IPython that may be related to readline,
> which I am pursuing on the IPython mailing list.
>
> I had my self-built version of readline 5.1 installed in /usr/local/
> include, and I patched and reinstalled it, which was one theory for
> fixing the problem, but no go.
That's not going to do anything at all unless you were to also
recompile Python.
> I'm just curious about the readline component of the Universal
> MacPython 2.4.3 release.
>
> http://bob.pythonmac.org/archives/category/python/ says:
>
> "Includes a working bsddb, readline, and curses."
>
> Where is that readline installed? Who trumps who, a readline I have
> installed in /usr/local/include, or MacPython's readline?
It's linked statically into the readline extension, so it doesn't
know nor care about any other readline.
> Does the installer check for the presence of readline, and make
> decisions accordingly?
No. It comes with its own private copy of readline. The installer
doesn't recompile anything.
> Just trying to get the lay of the land in order to isolate the
> problem.
>
> Here is my post to IPython, for context.
>
> Cheers,
> Mike
>
> ---
> If I partially (or completely) enter a command onto a line, then hit
> the up arrow, I cannot scroll back through history, and worse, if I
> hit up twice, or hit up then down, I get a bus error and am ejected
> from ipython. In the following, I type in "print range" then hit the
> up arrow twice:
Are you running 10.3.9 by chance? It might be an incompatibility
there, we don't test very thoroughly on anything but 10.4.x due to
availability.
-bob
More information about the Pythonmac-SIG
mailing list