pyenv 3.6.5 BUILD FAILED macOS Mojave 10.14.5

时光总嘲笑我的痴心妄想 提交于 2020-01-16 19:52:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!