我正在尝试在 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
这是一个应该困扰我的问题吗?我该如何构建它?我找到了这个补丁,但它没有包含在我从网站上获得的 Python 3.2.3 的源代码中......
在我的源代码上应用这个补丁,并没有解决问题......