Skip to main content
 首页 » 编程设计

python之替换发生在这里,因为完全扩展的 BINDIR 在配置中不可用

2025年05月04日9jiqing9006

<分区>

刚才,我在云平台上搭建了Linux。

我正在尝试在 CentOS 6.4 上安装 python3.4。

我无法摆脱这种情况。

我不明白下面的消息是什么意思。

我该如何解决?

$yum install gcc 
... 
$./configure 
... 
... 
configure: creating ./config.status 
config.status: creating Makefile.pre 
config.status: creating Modules/Setup.config 
config.status: creating Misc/python.pc 
config.status: creating Misc/python-config.sh 
config.status: creating Modules/ld_so_aix 
config.status: creating pyconfig.h 
config.status: pyconfig.h is unchanged 
creating Modules/Setup 
creating Modules/Setup.local 
creating Makefile 
 
$make 
... 
# Substitution happens here, as the completely-expanded BINDIR 
# is not available in configure 
sed -e "s,@EXENAME@,/usr/local/bin/python3.4m," < ./Misc/python-        config.in >python-config.py 
# Replace makefile compat. variable references with shell script  compat. ones;  ->  
sed -e 's,\$(\([A-Za-z0-9_]*\)),\$\{\1\},g' < Misc/python-config.sh     >python-config 
# On Darwin, always use the python version of the script, the shell 
# version doesn't use the compiler customizations that are provided 
# in python (_osx_support.py). 
if test `uname -s` = Darwin; then \ 
            cp python-config.py python-config; \ 
    fi 

我又试了一次。 说来也怪,报错信息没有了。