[英]error: command '/usr/bin/clang' failed with exit code 1
I download a not commonly-used software package in github in Mac M1.我在Mac M1的github下载了一个不常用的软件package。 I am trying to compile and install myself according to the instruction.我正在尝试根据说明自行编译和安装。
I have encountered the following problem saying "command/usr/bin/clang with exits error 1".我遇到了以下问题,说“command/usr/bin/clang with exits error 1”。 I did install xcode in my mac.我确实在我的 mac 中安装了 xcode。 Because the built-in gcc version is 4.2, I upgrade the version using brew install gcc@7 command and the link to this gcc version.因为内置的gcc版本是4.2,所以我用brew install gcc@7命令和这个gcc版本的链接升级版本。 But I still face the same compiling problem.但我仍然面临同样的编译问题。
Does anyone have instructions for me how to solve this?有没有人指导我如何解决这个问题? The author did not maintain the source code anymore and I have struggled for one day and still can not fix the problem.作者没有再维护源码,折腾了一天也没有解决问题。
The follow steps worked!以下步骤有效!
python -m pip install --upgrade pip
pip install –upgrade wheel
pip install –upgrade setuptools
brew install openssl re2
LDFLAGS="-L$(/opt/homebrew/bin/brew --prefix openssl)/lib -L$(/opt/homebrew/bin/brew --prefix re2)/lib" CPPFLAGS="-I$(/opt/homebrew/bin/brew --prefix openssl)/include -I$(/opt/homebrew/bin/brew --prefix re2)/include" GRPC_BUILD_WITH_BORING_SSL_ASM="" GRPC_PYTHON_BUILD_SYSTEM_RE2=true GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true GRPC_PYTHON_BUILD_SYSTEM_ZLIB=true pip install <your package name>
Source: https://candid.technology/error-command-usr-bin-clang-failed-with-exit-code-1/来源: https://candid.technology/error-command-usr-bin-clang-failed-with-exit-code-1/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.