centos6.5 建立python tab
[root@abc~]# python
Python 2.6.6 (r266:84292, Jul 4 2013, 01:15:07)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import readline
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: libreadline.so.5: cannot open shared object file: No such file or directory
yum install readline-devel.x86_64 -y ln -s /lib64/libreadline.so.6 /lib64/libreadline.so.5 import readline import rlcompleter readline.parse_and_bind('tab: complete')