NEMO on MacOSX -- installation comments for Mac OS 10.4.x
Upgrading (G5)
(april 2006) I upgraded from 10.3.9 to 10.4, which soon became 10.4.6
after the 4 CD-set was installed and various updates from apple.com were
applied. Sadly, Xcode was not automatically updated, which confused
me initially (Xcode *was* installed in 10.3 and it was also on the 4th CD).
The compiler would simply not even work (e.g. i had installed the new FINK
version). Hey, i'm really just a linux user, this mac stuff *just works*, right?
After Xcode was installed one has several options for gnu compilers:
- Apple's Xcode:
in /usr/bin gcc (4.0.1) (but no fortran, so mostly useless for us)
I found some older versions; gcc-3.3 (build 1819) and gcc3 (build 1256
based on gcc 3.1) in /usr/bin, but they
seem to be leftovers from the
the previous Mac OS X). See also apple's
XCode GCC4 release notes
- HPC :
in /usr/local/bin - gcc (4.2.0).
You can also optionally install g77 3.4 (3.4.4)
with this version of gcc4
instead of the default gfortran. I had an older
g77 (3.5.0 20040429) in there which clearly confused some
users.
- fink:
in /sw/bin - gcc-4 (4.0.0)
- darwinports:
in /opt/local/bin - gcc33, gcc34, gcc40, gcc41 and gcc42.
e.g. gcc-dp-3.4 (3.4.5) gcc-dp-4.0 (4.0.3)
- I have now heard of one case where the compiler was installed
manually from source, but without further details.
Notes:
- the compilers are not named equally logically, so some $path
magic may not always be the full solution. Symlinks or use
the CC/CXX/F77 environment variables for configure. (this won't work
in miriad yet, so you would need symlinks and a good $path)
- the fortran compiler is called g77 in gcc3, and gfortran in gcc4.
- if you choose gfortran,instead of g77, you may need to edit PGPLOT's
driver.list file and redo pgplot.
- The -lcc_dynamic issue seems to have gone away (cf.
this). But SMA guidelines make you create a link ot the old
libcc_dynamic.a, which probably is not needed if you
stay away from g77 and only use gfortran? I'm still a little
confused about this.
-
New Install (Intel)
coming soon.... it is known to work (Jonathan Williams' MIRIAD)
Links
last mod: 28-apr-2006 PJT