在我的 macbook pro 上安装 cantera 2.1 我遵循 Bok Jik Lee 最近在他的博客上发布的程序: 在 OSx 10.9 Mavericks 上安装 Cantera 2.1
到目前为止一切正常,但是当我来到第 9 点时出现错误:“安装 Cantera”
将当前位置更改为我输入的 canters-2.1 文件夹后
scons build prefix='/usr/local/opt/cantera' python_compiler='clang++ -stdlib=libc++ -mmacosx-version-min=10.7' sundials_include='/usr/local/opt/sundials/2.5.0/include' sundials_libdir='/usr/local/opt/sundials/2.5.0/lib'
这些命令一直有效,直到我收到以下错误:
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [build/lib/libcantera_shared.dylib] Error 1
scons: building terminated because of errors.
此错误之前的最后一行如下:
build/src/clib/ctxml.os -Lbuild/lib -L/usr/local/opt/sundials/2.5.0/lib -L/usr/local/opt/sundials/2.5.0/lib -lgfortran -lsundials_cvodes -lsundials_ida -lsundials_nvecserial -framework Accelerate
所以 scons 终止了...我忘记安装什么了吗?我能做些什么?
干杯,
马蒂亚斯
Ps:我是一个相当新的mac用户 - 所以这些是我使用终端和所有这些命令的第一次体验......