~ubuntu-branches/ubuntu/wily/eso-midas/wily-proposed

« back to all changes in this revision

Viewing changes to install/unix/systems/Darwin/README

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
**************************** IMPORTANT NOTES **********************************
 
3
                                
 
4
                                
 
5
 
 
6
                Mac OSX 10.5.x
 
7
                --------------
 
8
 
 
9
080619:  How to get Fortran, Motif for OSX 10.5 (Leopard)
 
10
 
 
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)
 
15
 
 
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.
 
20
 
 
21
        Download Xcode3.0.dmg, unpack via double click and install 
 
22
        XcodeTools.pkg also via double click.
 
23
 
 
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
 
30
 
 
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
 
34
 
 
35
        to get the Motif stuff for the Midas GUIs
 
36
        $ sudo port install openmotif
 
37
 
 
38
        After that you must set the following links in /opt/local/bin
 
39
        $ cd /opt/local/bin
 
40
        $ ln -s gcc-mp-4.2 gcc
 
41
        $ ln -s gcc-mp-4.2 cc
 
42
        $ ln -s gfortran-mp-4.2 gfortran
 
43
 
 
44
 
 
45
080620:  we recommend John Pritchard's webpage about his experiences 
 
46
        with Midas on the Mac:
 
47
        www.eso.org/~jpritcha/MIDASonMacOSX.html
 
48
 
 
49
 
 
50
                Mac OSX 10.6.x
 
51
                --------------
 
52
 
 
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!
 
56
 
 
57
 
 
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
 
60
 
 
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)
 
64
 
 
65
 
 
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!
 
69
 
 
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
 
74
 
 
75
 
 
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.
 
91
 
 
92
 
 
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.
 
98
 
 
99
        Above also applies to Mac OSX 10.7 (Lion).
 
100
 
 
101
 
 
102
*******************************************************************************