getting up arrow in terminal to scroll thought history of python commands

Benjamin Kaplan benjamin.kaplan at case.edu
Mon Jun 14 11:08:23 EDT 2010


On Mon, Jun 14, 2010 at 6:09 AM, Vincent Davis <vincent at vincentdavis.net> wrote:
> On Mon, Jun 14, 2010 at 6:49 AM, Thomas Jollans <thomas at jollans.com> wrote:
>> On 06/14/2010 02:37 PM, Vincent Davis wrote:
>>> On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong <irmen-NOSPAM- at xs4all.nl> wrote:
>>>> On 14-6-2010 1:19, Vincent Davis wrote:
>>>>>
>>>>> I just installed 2.6 and 3.1 from current maintenance source on Mac
>>>>> OSx. When I am running as an interactive terminal session the up arrow
>>>>> does not scroll thought the history of the py commands I have entered
>>>>> I just get ^[[A. When I install from a compiled source it works fine.
>>>>> Whats the fix for this?
>>>>>
>>>>> Thanks
>>>>> Vincent
>>>>
>>>> I'm guessing you don't have the readline module.
>>>>
>>>> Compile and install GNU Readline, then type 'make' again in your Python
>>>> source tree. It should now no longer report a missing 'readline' module.
>>>
>>> What exactly do you mean by "'make' again in your Python source tree."
>>
>> You installed Python from source didn't you? At some point you'll have
>> to invoke make, unless some tool did that for you.
>>
>> Anyway, make sure readline is installed, and then recompile Python.
>
> So I should run
> ./configure
> make install
> again?
> Will this overwrite other py packages I have installed?
>
> Vincent
>

That should be
./configure
make
make install

You missed a rather important step. I don't think it will overwrite
anything except for the files that are part of Python itself, but I'm
not completely sure.



More information about the Python-list mailing list