|
The following are some remarks and hints about running GAP under OS X. I
will not assume that you use the MacOS version (that will run in the
`Classic' environment) but that you want to run it as a Unix program,
befitting the Unix basis of the operating system.
I will assume that you are using the ``Tiger'' (10.4) version of OS X with XCode 2 (i.e. gcc 4). (See below for notes on older versions) Similar steps might work under older versions, though this is beyond the scope of this document. |
|
Unless you are content with getting my precompiled binaries (and these precompiled binaries run) you will have to compile GAP yourself. For this you need to install a couple of tools that are provided by Apple for free, but are not installed by default.
All required packages (apart from GAP itself, of course) is available on the Xcode CD (at the time of writing this the most recent version was 2.1). If you bought a boxed version of the operating system this CD was included. Otherwise you can get a copy at your local Apple store or you can download it for free.
To download Xcode go to developer.apple.com. If this is your first visit, you will have to register (the free online membership that only gives you download access is sufficient). Then go to Download Software -> Developer Tools and download the most recent version of Xcode Tools.
From the Xcode CD, install the Developer.mpkg package. (The package downloads in multiple chunks. Unpack the first one, run it, it will unpack the other ones.) Go through the spiel of the installer which might take half an hour depending on your machine.
If you also want to compile XGAP, you need to install X11, as well
as the X11 SDK (Software Development Kit). You find X11 itself
on the third installer disk for ``Panther'' (just insert the CD and follow
the prompts, you will have to select X11 yourself). The SDK is a
separate package in the Packages directory of the Xcode CD.
(The naming Xcode 2.1 and X11 is misleadingly similar, but
this are really two different programs.)
You may also want to read
this webpage by
Apple about X11 under OS X.
./configure makeshould produce a workable binary. Depending on your processor, however you will be able to get a notable performance increase by replacing the make call by one that specifies extra optimization flags. (You will find a description of all of these in the `gcc' manual, for example at developer.apple.com/documentation.) Extra optimization might give you as speed gain of about 20%.
make CFLAGS="-fast -mtune=7450 -mcpu=7450"
make CFLAGS="-fast -mpowerpc64"
make COPTS="-O3 -funroll-loops -fstrict-aliasing -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -malign-natural -ffast-math -mdynamic-no-pic -mpowerpc-gpopt -force_cpusubtype_ALL -fstrict-aliasing"On a newer G4, you can again add the options -mtune=7450 -mcpu=7450.
make COPTS="-O3 -mtune=G5 -mcpu=G5 -mpowerpc64"
To run XGAP, you will have to start the application X11
(which provides a X-windows server running under the ``Aqua'' window system
of the Macintosh)
first. This application sitz in the Utilities folder in the
Applications folder.
Precompiled binaries
If you cannot install the developer tools (for example because you do not have administrator access), I have put here binaries which I compiled on my (G4 powerbook under OS X 10.3) machine. they might or might not run on other machines or other versions of the operating system.