1. 程式人生 > >centos6.5 原始碼方式安裝python2.7.8

centos6.5 原始碼方式安裝python2.7.8

./configure
make
Python build finished, but the necessary bits to build these modules were not found:
_curses            _curses_panel      _sqlite3        
_ssl               _tkinter           bsddb185        
bz2                dl                 imageop         
readline           sunaudiodev                        
To find the necessary bits, look in setup.py in detect_modules() for the module's name.




Failed to build these modules:
_multiprocessing   fcntl
yum install readline-devel(readline)
yum install ncurses-devel ncurses(_curses _curses_panel)
yum install sqlite-devel (_sqlite3)
Failed to build these modules:
_multiprocessing   fcntl
rm /usr/include/stropts.h
yum install openssl-devel(_ssl)
yum install tkinter*tk-devel (_curses,_curses_panel,_tkinter)
yum install bzip2* (bz2)
Python build finished, but the necessary bits to build these modules were not found:
bsddb185           dl                 imageop         
sunaudiodev                                           
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


running build_scripts
上述模組安裝意義不大:
bsddb185: Older version of Oracle Berkeley DB. Undocumented. Install version 4.8 instead.
dl: For 32-bit machines. Deprecated. Use ctypes instead.
imageop: For 32-bit machines. Deprecated. Use PIL instead.
sunaudiodev: For Sun hardware. Deprecated.
make install