我正在使用
pyenv
安装Python 2.6,但是在执行pyenv install 2.6.9
时出现以下错误:
checking MACHDEP... darwin checking EXTRAPLATDIR... $(PLATMACDIRS) checking machine type as reported by uname -m... x86_64 checking for --without-gcc... no checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/var/folders/r9/771hsm9931sd81ppz31384p80000gn/T/python-build.20150213191018.2121/Python-2.6.9': configure: error: C compiler cannot create executables
我已经安装了Xcode 4.6.3并安装了命令行工具。
谢谢,
Ch
configure
脚本会输出一个日志,其中包含运行过程中的详细信息,包括任何发生的错误。请检查该日志以查找哪个命令失败,并显示出现的错误消息。 - John Bollingergcc -V >&5 gcc: error: unrecognized option '-V' gcc: fatal error: no input files
还有ld: library not found for -lgcc_ext.10.5
。 - ChrisBld: 找不到库 -lgcc_ext.10.5 collect2: ld 返回 1 退出状态 configure:3436: $? = 1 configure:3474: 结果:否 configure: 失败的程序是: | /* confdefs.h */ | #define _GNU_SOURCE 1 | #define _NETBSD_SOURCE 1 | #define __BSD_VISIBLE 1 | #define _BSD_TYPES 1 | #define _DARWIN_C_SOURCE 1 | /* end confdefs.h. */
- ChrisB