Building Glotzilla

Glotzilla should be straightforward to build. Overall, the installation process takes about 10-15 minutes on a mac G5. Make sure that you have a few hundred MB of free hard disk space prior to installation. Also, you may want to back up your ~/.bashrc file, since it will be edited during the install.

Glotzilla requires installation of an MPI (Message-Passing Interface) implementation. For Xcode builds, until OSX 10.5 arrives, you will need LAM/MPI. Otherwise both LAM/MPI or OpenMPI will suffice. Users must also have FFTW version 2.1.5 installed. Links to these packages can be found on the Supporting Software page.


OSX 10.4.x

If you have OSX 10.4 and XCode, you should use XCode to build the project.

$ cd Glotzilla
$ ./configure mac
$ make

gcc

For all other operating systems, you can use the command line gcc compiler.

$ cd Glotzilla
$ ./configure
$ make

Note that currently, there is no ./configure file. Therefore, if you run into a problem compiling you may have to edit the !Makefile(s) in individual projects in the src directory.

Finalizing Installation

Now close your terminal and open a new one or type

$ source ~/.bashrc

This allows the terminal to find programs in the Glotzilla/bin folder. If this doesn't work, try adding the line

source ~/.bashrc

to your ~/.bash_profile file in your home directory.

Advanced Make Commands

Note that you can also build individual projects using the makefile in Glotzilla/.

#clean all targets
make clean
#build subproject:
make ${PROJECT_NAME}
#example, make the Glotzilla MD project:
make glotzmd

Common Problems

Glotzilla did not build correctly

Make sure that you have all of the Supporting Software installed.

The Glotzilla libraries (SimulationBuilder, etc.) will not compile. I get an error like <mpi.h>: file does not exist.

Make sure you install MPI (see Supporting Software)

My terminal is acting funny after the install.

There is probably a problem with your ~/.bashrc file. The old file should be backed up in the Glotzilla/tmp folder. Try editing your ~/.bashrc file manually by adding the lines.

PATH=$PATH:/Users/user_name/Desktop/Glotzilla/bin
MANPATH=$MANPATH:/Users/user_name/Desktop/Glotzilla/man

Note that here, the Glotzilla folder resides on the Desktop.