至此readline总算是编译安装成功,如果此时执行/usr/local/python/bin/python2.7直接启动python,依然看到和首次启动python一样的错误,此时,别着急,重新编译安装python后再启动即可正常使用。
[root@linuxidc Python-2.7.10]# /usr/local/python/bin/python2.7
Python 2.7.10 (default, Jul 10 2015, 15:41:26)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
--------------------------------------分割线 --------------------------------------
《Python核心编程 第二版》.(Wesley J. Chun ).[高清PDF中文版]