我尝试在Python 3.8 conda环境中的macOS Big Sur上安装Dedalus software
我使用Dedalus作者推荐的script安装了环境
在安装过程中,pip启动的编译失败
x86_64-apple-darwin13.4.0-clang -bundle -undefined dynamic_lookup -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/dima/sw/conda/envs/rwth09/lib -L/Users/dim
a/sw/conda/envs/rwth09/lib -flto -Wl,-export_dynamic -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/dima/sw/conda/envs/rwth09/lib -L/Users/dima/sw/conda/envs
/rwth09/lib -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/dima/sw/conda/envs/rwth09/lib -L/Users/dima/sw/conda/envs/rwth09/lib -march=core2 -mtune=haswell -
mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/dima/sw/conda/envs/rwth09/include -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -isystem /Users/dima/sw/co
nda/envs/rwth09/include -arch x86_64 build/temp.macosx-10.9-x86_64-3.8/dedalus/libraries/fftw/fftw_wrappers.o -L/Users/dima/sw/conda/envs/rwth09/lib -L/Users/dima/sw/conda/envs/rwth09/lib -L/Us
ers/dima/sw/conda/envs/rwth09/lib -L/Users/dima/sw/conda/envs/rwth09/lib -lfftw3_mpi -lfftw3 -lm -o build/lib.macosx-10.9-x86_64-3.8/dedalus/libraries/fftw/fftw_wrappers.cpython-38-darwin.so -X
linker -Bsymbolic -Wl,--whole-archive /Users/dima/sw/conda/envs/rwth09/lib/libfftw3.a /Users/dima/sw/conda/envs/rwth09/lib/libfftw3_mpi.a -Wl,--no-whole-archive
ld: unknown option: -Bsymbolic
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'x86_64-apple-darwin13.4.0-clang' failed with exit status 1
有人知道如何解决这个问题吗
于2021年1月15日更新。问题的解决方案是安装clang 11,而不是由conda
自动安装的clang 10
从this answer:
我认为您应该报告使用
-Bsymoblic
标志将Dedalus软件构建为Mac bug我自己也没有Mac,但为什么不尝试在https://www.python.org/downloads/mac-osx/上下载python 3.9.1呢。我真的不知道这是否会在Big Sur上运行,但是,你可以试试
相关问题 更多 >
编程相关推荐