= '''Installation procedures for MacIntosh platforms''' = Last edited [[Timestamp]] [[PageOutline]] ---- = Installation procedures for available compilers = * [wiki:OPA_TAM/InstallationsMacInstosh/InstallMacGfortran Installation with gfortran] * [wiki:OPA_TAM/InstallationsMacInstosh/InstallMacG95 Installation with g95] * [wiki:OPA_TAM/InstallationsMacInstosh/InstallMacIntelFortran Installation with ifort] = Miscellaneous useful informations = - NetCDF : useful tips on the [http://www.unidata.ucar.edu/software/netcdf/docs/other-builds.html unidata] server - NetCDF : [http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html Known problems] - $basepath refers to the path where the source code lies - $compil_target is a user defined name refering to the compilation environment. - Useful : the ROMS Mac [https://www.myroms.org/wiki/index.php/ROMS_Mac installation page] ---- = Installation with gfortran = === a - GNU Fortran (GCC) 4.5.0 20090604 (experimental) [trunk revision 148180] === - Install gfortran from the [http://gcc.gnu.org/wiki/GFortranBinaries dmg] file ---- = Installation 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 }}} ----