Installing Trilinos in Mac OSX 10.5.7

To get Trilinos to work it is necessary to get it from here and compile it.In order for the compilation to be successful it is needed a c compiler, a c++ compiler and a fortran compiler. One set of these compilers is given by the gcc bundle. If you install Xcode from Apple you will get gcc and g++ but not gfortran. To get gfortran you can use the one given by macports. Having downloaded Trilinos, you must unpack it. Now, inside the root dir of the unpacked Trilinos tree you should create a directory for you build, even if you just plan on making one build, this is always good. I name it OSX_SINGLE, and move inside it, doing:

1
mkdir OSX_SINGLE
1
cd OSX_SINGLE

Now inside it you should run config, but running config with no special settings gives rise to problems. Hence you should use the following:

1
../configure --cache-file=config.cache --prefix=/usr/local/trilinos-8.0.8-serial CC=/usr/bin/gcc CXX=/usr/bin/g++ F77=/usr/local/bin/gfortran --with-libs="-framework vecLib" --with-ldflags="-Wl,-multiply_defined -Wl,suppress" --enable-amesos --enable-epetra --enable-anasazi --enable-aztecoo --enable-examples --enable-didasko --enable-teuchos --enable-triutils --enable-galeriD

Doing this it should result in a good configuration for make.After this Trilinos is now able to be compiled. To do that you should run:

1
make everything

And then if everything was compiled correctly you should install it, with sudo:

1
sudo make install

After this you should have a working Trilinos installation.

del.icio.us Slashdot Digg Technorati Google StumbleUpon

Leave a Reply