CentOS 下Python 2.6.4的安装

yum update
  
yum install gcc* automake* make* lib* Python* perl* wget
yum install openssl openssl-devel sqlite sqlite-devel readline readline-devel gdbm gdbm-devel bzip2 bzip2-devel
  
cd /usr/local/src
wget http://python.org/ftp/python/2.6.4/Python-2.6.4.tar.bz2
bzip2 -d Python-2.6.4.tar.bz2
tar xvf Python-2.6.4.tar 
  
cd Python-2.6.4
./configure
make
make test
make install

可能在编译的过程中,将提示有一些包没找到

1


2


3






Failed to find the necessary bits to build these modules: 



_bsddb             _tkinter           bsddb185 


sunaudiodev

bsddb是berkeley db

请从Oracle网站下载http://www.oracle.com/technology/products/berkeley-db/index.html

另外个sunaudiodev和_tkinter..我觉得我应该用不上,所以也没安装了。

相关推荐