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