我正在尝试在RHEL5.7机器上构建Python3,我成功地构建了Python3.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,但它没有包含在我从网站上获得的Python3.2.3源代码中……
在我的源码上应用这个补丁,并没有解决问题...
发布于 2012-06-01 21:20:13
好吧,我已经在serverfault.com中回答了我自己的问题:building python 3.2.2 on a Red Hat 5 machine
您需要应用patch found here。
然后你就可以成功构建Python3了。
https://stackoverflow.com/questions/10583124
复制相似问题