On my new Mac Pro, if I do a
gfortran test.f
I get an error message saying that it cannot find libfortran.spec. However, the library is indeed there in /usr/local/lib. If I explicitly do a
gfortran -L /usr/local/lib test.f
everything works fine.
On my MacBook Air laptop (running the same 10.9.2) I never have had to specify the library location. I've done a printenv on both machines, and while there is a lot more "stuff" on my MacBook Air, it's not clear what/where any flags are being set there. What do I have to do to make sure the Mac Pro automatically goes looking in /usr/local/lib for libraries?
Sorry for this question being so basic.
gfortran test.f
I get an error message saying that it cannot find libfortran.spec. However, the library is indeed there in /usr/local/lib. If I explicitly do a
gfortran -L /usr/local/lib test.f
everything works fine.
On my MacBook Air laptop (running the same 10.9.2) I never have had to specify the library location. I've done a printenv on both machines, and while there is a lot more "stuff" on my MacBook Air, it's not clear what/where any flags are being set there. What do I have to do to make sure the Mac Pro automatically goes looking in /usr/local/lib for libraries?
Sorry for this question being so basic.