Python backspace, arrow keys not working correctly workaround

Source: Internet
Author: User

The Python 2.6.6 arrows with CentOS 6.5 and the backspace bar (Backspace) work correctly:

The custom installed Python 2.7.6 found the arrow and the BACKSPACE (Backspace) exception when used:

This is due to the lack of the ReadLine development package for the newly upgraded Python2.7.6:

After recompiling, installing Python 2.7.6 and discovering make install, the final hint is missing the ReadLine library:
--------------------------------------------------------------------------------------------------------------- -
Python build finished, but the necessary bits-to-build these modules were not found:
_BSDDB _curses _curses_panel
_sqlite3 _tkinter bsddb185
bz2 dbm DL
GDBM Imageop SunaudiodevReadLine
--------------------------------------------------------------------------------------------------------------- -

So we need to install the ReadLine development package and re-compile the Python 2.7.6 for installation:

*:+yuminstall readline-devel.x86_64

[Email protected] 09:28:40 ~
= Yum List|grep ReadLine
readline.x86_64 6.0-4.el6 @anaconda-centos-201311272149.x86_64/6.5
readline-devel.x86_64 6.0-4.el6 @bgios
compat-readline5.i686 5.2-17.1.el6 Bgios
compat-readline5.x86_64 5.2-17.1.el6 Bgios
compat-readline5-devel.i686 5.2-17.1.el6 Bgios
compat-readline5-devel.x86_64 5.2-17.1.el6 Bgios
compat-readline5-static.x86_64 5.2-17.1.el6 Bgios
libreadline-java.x86_64 0.8.0-24.3.el6 Bgios
libreadline-java-javadoc.x86_64 0.8.0-24.3.el6 Bgios
readline.i686 6.0-4.el6 Bgios
readline-devel.i686 6.0-4.el6 Bgios
readline-static.x86_64 6.0-4.el6 Bgios
tcl-tclreadline.i686 2.1.0-3.el6 Epel
tcl-tclreadline.x86_64 2.1.0-3.el6 Epel
tcl-tclreadline-devel.i686 2.1.0-3.el6 Epel
tcl-tclreadline-devel.x86_64 2.1.0-3.el6 Epel

Re-configure, make, make install, done!!

Python backspace, arrow keys not working correctly workaround

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.