pip install qtdigest-cffi
ld: unknown option: --no-as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
因为LD加了参数–no-as-needed 删除即可:
echo $LDFLAGS
-Xlinker --no-as-needed
export LDFLAGS='-Xlinker'
pip install mysqlclient
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
在LD参数中配置openssl即可(没有安装openssl的话 需要安装下):
export LDFLAGS='-Xlinker -L/usr/local/opt/openssl/lib'