在redhat 5机器上构建Python3

时间:2012-05-14 12:15:19

标签: linux python-3.x redhat

我正在尝试在RHEL 5.7机器上构建Python3,我成功地设法构建了Python 3.2.2,其中包含:

# Install required build dependencies
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel

# Fetch and extract source. Please refer to http://www.python.org/download/releases
# to ensure the latest source is used.
wget http://www.python.org/ftp/python/3.2/Python-3.2.tar.bz2
tar -xjf Python-3.2.tar.bz2
cd Python-3.2

# Configure the build with a prefix (install dir) of /opt/python3, compile, and install.
./configure --prefix=/opt/python3
make

但是我在使用Python 3.2.3失败了(?):

Failed to build these modules:
_posixsubprocess     

这是一个应该打扰我的问题吗?我该如何构建它? 我找到了this patch,但它没有包含在我从网站上获得的Python 3.2.3来源中... 在我的源上应用此补丁,并没有解决问题...

1 个答案:

答案 0 :(得分:0)

好吧,我已经在serverfault.com上回答了我自己的问题:building python 3.2.2 on a Red Hat 5 machine

您需要应用patch found here

然后你就可以成功构建Python 3.