New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
WorkingGroups/TAM/InstallationsMacInstosh – NEMO
wiki:WorkingGroups/TAM/InstallationsMacInstosh

Version 3 (modified by cdlod, 15 years ago) (diff)

--

Installation procedures for MacIntosh? platforms

Last edited Timestamp?


  • Useful tips on the unidata server
  • Known problems
  • $basepath refers to the path where the source code lies
  • $compil_target is a user defined name refering to the compilation environment.

With gfortran

GNU Fortran (GCC) 4.5.0 20090604 (experimental) [trunk revision 148180]

  • Install gfortran from the dmg file

With g95

I (Arthur) installed the macport version of g95 on a Mac OSX 10.5.8

$ g95 --v
Using built-in specs.
Target: 
Configured with: ../configure --prefix=/opt/local/lib/gcc-lib/i386-apple-darwin9.0.0/4.0.3 --with-libiconv-prefix=/opt/local/include --enable-languages=c --with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-nm=/usr/bin/nm --with-included-gettext
Thread model: posix
gcc version 4.0.3 (g95 0.90!) Jan 15 2008

NETCDF compilation

  • download the 4.0.1 version of NETCDF from unidata and unzip the archive
$ cd netcdf-4.0.1/
$ F90=g95 F77=g95 ./configure --prefix=/usr/local
[...]
$ sudo make check install

NEMOTAM and NEMOVAR compilation

in $basepath/nemo/fcmconfig/bld/$compil_target/nemo.cfg and $basepath/nemovar/fcmconfig/bld/$compil_target/nemo.cfg

edit the lines

bld::tool::fc      g95
bld::tool::fflags  -c -O3 -r8 -ffree-line-length-huge

and

%netcdf                 /usr/local

With Intel Fortran

ifort (IFORT) 11.1 20090511

Using FCM

edit

$basepath/nemo/fcmconfig/bld/$compil_target/nemo.cfg

and

$basepath/nemovar/fcmconfig/bld/$compil_target/nemo.cfg

according to your compiler and the path to netcdf,

then

$ cd $chemin/nemovar/build
$ ./fcmvmake.ksh -t $basepath -c $compil_target