Related Documentation:
GENESIS System
The procedure for the installation of GENESIS on a Mac OSX is similar to that for a Linux build on a regular PC. The major difference is that it requires build tools for the Mac. These are somewhat hidden on disk 2 of the Mac OS installation disks. Installation requires administrator privileges. (Note: Some installation must be done from the Terminal). If you do not have administrator privileges you should contact your system administrator for help. The Terminal can be found in the Applications –> Utilities folder. For regular use of GENESIS it is convenient to place a Terminal in the dock for easy access. Installation requires executing the following major steps:
Install the following packages:
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
|
WARNING: The compilers available from MacPorts should NOT be used for installation (see below). Prior to installing the DeveloperPackage you should check which Perl libraries OSX uses with “which perl”. This should return /usr/bin/perl. If the response is /opt/local/bin/perl, there is a MacPorts installation of Perl. This is most easily corrected by removing the MacPorts path /opt/local/bin from your path in the .profile file in your home directory. To do this open the .profile file in an editor and convert the line (or similar):
PATH=/opt/local/bin:/usr/local/bin:$PATH
|
by removing /opt/local/bin to give:
PATH=/usr/local/bin:$PATH
|
Note: Only remove the MacPorts path and leave all others alone. If you do not make this change, running GENESIS may result in a bus error as the correct Perl libraries will not be found. It may also call MacPorts versions of build tools, which can result in some undesirable behavior.
Note: Compiling from source will only produce executables and libraries for the host architecture. For example if you have a 64-bit system and 32-bit Perl, the compiled SWIG libraries will not load, giving an error similar to this:
Note: For information on how to properly compile Universal Binaries for OS X, see this link.
./SwiggableHeccer.dylib: mach-o, but wrong architecture at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm
|
so when compiling on a machine make sure that Perl, Python and all of their loadable modules and libraries are of the same architecture as the host machine.
This can be done, for example, by entering the following at a terminal prompt:
$ sudo perl -MCPAN -e shell
|
Then at the cpan> prompt enter:
cpan> force install YAML
. . . |
Download the latest version of the DeveloperPackage, available from the GENESIS package archive. It is called developer-release-label.tar.gz, where release-label is the current release identifier. (Note: If downloading via your browser, do not unpack the package during the download as it will be placed into its own subdirectory).
Once the above dependencies are installed source code can be pulled from the GENESIS repository and a build performed with the following commands:
Once these have completed the installation can be tested with the following command:
This will perform a series of regression tests and save the output to file. The output can be checked by typing “less /tmp/check.out”. Importantly, search for lines containing the string error_count that will indicate any inconsistencies with the installation.
Note: The running of tests is optional, but strongly advised.
Easiest method to install GENESIS 3 on Mac OSX is via installation packages available here. The packages install all compiled programs and scripts. However the prerequisite modules for Perl and Python must still be installed.
Required modules are listed in the GENESIS dependencies document. Note the above rule about macports still applies and the standard perl for Mac OSX at /usr/bin/perl should be the one invoked when pulling packages from CPAN.