to install cantera 2.1 on my macbook pro I am following the procedure from Bok Jik Lee recently posted on his blog: Installing Cantera 2.1 on OSx 10.9 Mavericks
Everything worked fine till now but I get an error when I come to point 9: "Install Cantera"
after changing the current location to the canters-2.1 folder I was typing
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'
the commands work until I get the following error:
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.
The last line before this error is the following:
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
So scons terminated... did I forget to install something? What can I do?
Cheers,
Matthias
P.s.: I am a pretty new mac user - so these are my first experiences using the terminal and all these commands...
However, it seems to be at the wrong location. I contacted Bok Jik Lee - the author of the instruction - he said that I should search for the right location of "libgfortran.a" and use then a link like: "-s /some/where/your/libgfortran.a /usr/local/lib/libgfortran.a"
Do you think this is a good idea? – user3313375 Feb 18 '14 at 11:01