【发布时间】:2014-02-15 13:09:52
【问题描述】:
要在我的 macbook pro 上安装 cantera 2.1,我遵循 Bok Jik Lee 最近在他的博客上发布的程序: Installing Cantera 2.1 on OSx 10.9 Mavericks
到目前为止一切正常,但是当我来到第 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 终止了...我忘记安装什么了吗?我能做什么?
干杯,
马蒂亚斯
P.s.:我是一个相当新的 mac 用户 - 所以这是我使用终端和所有这些命令的第一次体验......
【问题讨论】:
标签: compiler-errors fortran osx-mavericks scons cantera