2
**************************** IMPORTANT NOTES **********************************
9
080619: How to get Fortran, Motif for OSX 10.5 (Leopard)
11
This time, with Leopard on an Intel MacBook we got
12
the necessary code via MacPorts
13
http://www.macports.org
14
(read the installation guide of MacPorts)
16
First of all, we need Apple's Xcode 3.0 Developer Tools for
17
Leopard - so, off to the Apple Developer Connection site.
18
To download anything you must be registered with Apple's
19
Developers Community, so if that's not the case, register now.
21
Download Xcode3.0.dmg, unpack via double click and install
22
XcodeTools.pkg also via double click.
24
Back to the MacPorts site and download MacPorts for Leopard,
25
unpack and install Macports-1.6.0.pkg as above.
26
All stuff goes to /opt/local/bin
27
so you have to add this to the PATH env. variable,
28
only then you finally have access to the "port" command
29
with which you can get our desired software
31
to get Fortran you have to get gcc 4.2 (which contains also
32
frontend gfortran), default on Mac is gcc 4.0
33
$ sudo port install gcc42
35
to get the Motif stuff for the Midas GUIs
36
$ sudo port install openmotif
38
After that you must set the following links in /opt/local/bin
40
$ ln -s gcc-mp-4.2 gcc
42
$ ln -s gfortran-mp-4.2 gfortran
45
080620: we recommend John Pritchard's webpage about his experiences
46
with Midas on the Mac:
47
www.eso.org/~jpritcha/MIDASonMacOSX.html
53
100426: if you still use Mac OSX 10.5 you have to rename
54
make_options.osx.10.5 to make_options (1)
55
before doing the installation!
58
100426: for OSX 10.6 we use Fink to get all necessary Linux apps for
59
the Mac, see http://www.finkproject.org/ for more details
61
in particular /sw/bin/gcc-4 as the C compiler (gcc 4.4.x),
62
and /sw/bin/gfortran as Fortran compiler,
63
also Motif can be installed via Fink (32bit code)
66
110715: if you use Mac OSX 10.6 with Kernel Darwin 10.4.0
67
you have to rename make_options.osx.10.6 to make_options (1)
68
before doing the installation!
70
(1) this has to be done in /midas/version/local before starting the
71
installation via step 6 of the config script
72
when using the autoconfig script this renaming has to be done in
73
/midas/version/install/unix/systems/Darwin
76
111012: Midas checks if the default C compiler produces 32- or 64-bit code
77
and adapts the installation accordingly.
78
However, that's not working with the default gcc from Apple:
79
That compiler produces 64-bit code, so Midas will do the
80
installation , accordingly, producing 64bit executable modules,
81
e.g. $ file midas/version/monit/prepa.exe displays
82
prepa.exe: MACH-0 64bit executable x86_64
83
and starting Midas: $ inmidas
84
will abort with some trap no.
85
You have to use the Fink C compiler, instead, see above (100426)
86
and also get the gfortran from fink.
87
Then, either change your PATH variable, or, as root, do
88
# mv /usr/bin/gcc /usr/bin/gcc-orig
89
# ln -s /sw/bin/gcc-4 /usr/bin/gcc
90
Now, Midas will do a 32bit installation, and everything should work.
93
111015: with Kernel Darwin 10.7.0 you only need additionally the gfortran
94
frontend (e.g. from Fink) and can use the default gcc from Apple.
95
The 32bit gfortran works together with the native gcc provided
96
by OSX and creates 64bit executables on relevant architectures
97
With this kernel the 64bit Midas executables do work.
99
Above also applies to Mac OSX 10.7 (Lion).
102
*******************************************************************************