问题
I am trying to install python 3.6.5 using pyenv and getting a BUILD FAILED (OS X 10.14.5 using python-build 20180424).
Versions: macOS 10.14.5 Homebrew 2.1.8 pyenv 1.2.13 gcc 7.3.0
I have tried to install the additional SDK headers as recommended here. I have also tried installing: python 3.6.1 and python 3.6.5.
I get 189 warnings generated. The last 10 log lines:
/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
来源:https://stackoverflow.com/questions/57194588/pyenv-3-6-5-build-failed-macos-mojave-10-14-5