我正在尝试使用pyenv安装python 3.6.5并获得构建失败(使用python-build 20180424的OS X 10.14.5)。
版本: macOS 10.14.5 自制软件2.1.8 pyenv 1.2.13 gcc 7.3.0
我尝试按照推荐的here安装其他SDK标头。我也尝试安装:python 3.6.1和python 3.6.5。
我收到189条警告。最后10条日志行:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:341:13: note: insert '_Nonnull' if the pointer should never be null extern char *suboptarg; /* getsubopt(3) external variable */ ^ _Nonnull 189 warnings generated. rm -f libpython3.6m.a ar rc libpython3.6m.a Modules/getbuildinfo.o /opt/local/bin/ranlib: object: libpython3.6m.a(getbuildinfo.o) malformed object (unknown load command 1) ar: internal ranlib command failed make: *** [libpython3.6m.a] Error 1