[MITgcm-support] Installation of gfortran and netcdf

Dr Nick Rogan nrogan at geomar.de
Wed Jan 14 11:29:00 EST 2015


Thanks Ryan,

I've managed to get Macports up and running so I'll get the code from 
sourceforge and give that a go.

Thanks.

On 14/01/2015 17:23, Ryan Abernathey wrote:
> I have always used the compilers from this website. They seem to work 
> great, as long as you pick a version compatible with your current OS.
> http://hpc.sourceforge.net/
>
> On Wed, Jan 14, 2015 at 11:20 AM, Menemenlis, Dimitris (329D) 
> <Dimitris.Menemenlis at jpl.nasa.gov 
> <mailto:Dimitris.Menemenlis at jpl.nasa.gov>> wrote:
>
>     I am no expert but it looks like there might be an incompatibility
>     between your gfortran and gcc compilers.
>     There is a pre-compiled version gfortran for Snow Leopard
>     available here: https://gcc.gnu.org/wiki/GFortranBinaries
>     which might be more compatible with your C libraries.
>
>     On a separate note, if your macbook is late 2008 or newer,
>     you can upgrade from snow leopard to yosemite for free:
>     https://www.apple.com/osx/how-to-upgrade/
>     I agree that snow leopard was a good vintage of OS X but it is no
>     longer
>     actively supported by Apple so that could cause increasing
>     incompatibility
>     and security issues.  Additionally newer flavors of OS X,
>     Mavericks and
>     Yosemite, use various tricks to conserve battery power, which might be
>     good for an old laptop.
>
>     On Yosemite I currently use gfrotran 4.9.0 from
>     https://gcc.gnu.org/wiki/GFortranBinaries
>     http://coudert.name/software/gfortran-4.9.0-Mavericks.dmg
>     and I had to run the command: "xcode-select --install" as
>     described here:
>     https://software.intel.com/en-us/articles/installing-intel-compilers-for-os-x-pre-requisite-xcode-command-line-tools
>
>     > On Jan 14, 2015, at 4:40 AM, Nick <nrogan at geomar.de
>     <mailto:nrogan at geomar.de>> wrote:
>     >
>     > Hi everyone,
>     >
>     > I feel rather daft resorting to the mailing list for what should
>     be such a simple task. However, I've spent the last four days
>     trying to sort it out and I just can't keep going.
>     >
>     > I have lots of experience running the MIT on my iMac and macbook
>     pro, the latter of which I set up within an hour myself by
>     installing gfortran, hdf and netcdf before compiling the MITgcm
>     successfully.
>     >
>     > My experience of installation was a couple of years ago and due
>     to a short term post, a crippled iMac and a change of institution
>     I need to install the MIT on my personal MACbook to run some
>     simple simulations.
>     >
>     > So, I am running Mac OS X 10.6 and just can not get gfortran and
>     netcdf installed, or if they are installed genmake2 does not
>     acknowledge their existence. I have tried compiling binaries from
>     sourceforge, gcc  and others. I have tried apple installers,
>     everything and none of them seem to give the required result.
>     >
>     > Can someone take a couple of minutes out of their day and give
>     me some advice?
>     >
>     > This is no doubt something simple like the location of the
>     libraries or pointing a particular package to the executable, but
>     I just can't get my head around it.
>     >
>     > I think I've installed gfortran, though I couldnt find anywhere
>     how I should test it's installation. Version information and
>     manual information come onto the terminal when I request them.
>     >
>     > I pointed the mitgcm optfile at the gfortran executable at
>     /usr/local/bin/gfortran. But genmake2 does not acknowledge that
>     fortran exists:
>     >
>     > ===  Checking system libraries  ===
>     > Do we have the system() command using /usr/local/bin/gfortran...  no
>     > Do we have the fdate() command using /usr/local/bin/gfortran...  no
>     > Do we have the etime() command using /usr/local/bin/gfortran...  no
>     > Can we call simple C routines (here, "cloc()") using
>     /usr/local/bin/gfortran...  no
>     > Can we unlimit the stack size using /usr/local/bin/gfortran...  no
>     > Can we register a signal handler using
>     /usr/local/bin/gfortran...  no
>     > Can we use stat() through C calls...  no
>     > Can we create NetCDF-enabled binaries...  no
>     >
>     > Any advice?
>     >
>     > Hopefully someone can solve this problem for me in seconds.
>     >
>     > Kind regards,
>     >
>     > Nick Rogan
>     >
>     >
>     >
>     >
>     > _______________________________________________
>     > MITgcm-support mailing list
>     > MITgcm-support at mitgcm.org <mailto:MITgcm-support at mitgcm.org>
>     > http://mitgcm.org/mailman/listinfo/mitgcm-support
>
>
>     _______________________________________________
>     MITgcm-support mailing list
>     MITgcm-support at mitgcm.org <mailto:MITgcm-support at mitgcm.org>
>     http://mitgcm.org/mailman/listinfo/mitgcm-support
>
>
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support

-- 
Kind regards,

Nick

-------------------------------------

Dr Nick Rogan

GEOMAR
Helmholtz-Centre for Ocean Research Kiel
Wischhofstrasse 1-3 / Room 12/330
D-24148 Kiel, Germany

-------------------------------------

nrogan at geomar.de

www.geomar.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20150114/b5213328/attachment.htm>


More information about the MITgcm-support mailing list