sudo yum install zlib-devel
sudo yum install bzip2-devel
sudo yum install openssl-devel
sudo yum install ncurses-devel
sudo yum install sqlite-devel
sudo yum install readline-devel
sudo yum install gdbm-devel
sudo yum install gcc
然後下
./configure
make
make altinstall
雖說這樣的安裝方式還是會缺少幾個套件如下:
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _tkinter bsddb185
dl imageop sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
但這些東西有的是舊時代的產物了,我們可以直接忽略掉。而在這邊我們必需使用altinstall替換掉install,讓Python的安裝只建立python2.7的執行檔,而不會替換掉原本的Python2.6,以免造成系統的問題。
沒有留言:
張貼留言