Friday, June 16, 2006

Compiling netcdf with ifort 9.1 on an Intel Mac

First, if you haven't already done so, you need to do this if you are runing Xcode 2.3, like I am. Otherwise, ifort will not make it through configure.


cd /usr/lib
sudo ln -s gcc/darwin/3.3/crt2.o .


Then, you can set up your environmental variables just like you would using ifort in Linux. For example:


export FC=ifort
export F90=ifort
export FFLAGS="-O -mp"
export CPPFLAGS="-DNDEBUG -DpgiFortran"


Then, like always, run


./configure --prefix=/usr/local
make

No comments:

Post a Comment