Compilation

We provide a script, install_software, to compile GAMIT/GLOBK. You can download this file from the same server as the source code or extract it from the com.|rel|.tar.gz file before running it, e.g. from your <source> directory:

$ tar xfzv com.10.71.tar.gz com/install_software
$ com/install_software

If you downloaded a copy of install_software directly from our server you will need to make it executable before running, e.g. from your <source> directory:

$ chmod +x install_software

Either way, read carefully the questions the script asks and provide the information it requires. If the X11 libraries and headers cannot be found automatically, you will need to stop the compilation and edit libraries/Makefile.config (in your <source> directory) before re-running install_software. Specifically, you will need to edit the X11LIBPATH and X11INCPATH lines near the top of the file; typical locations for the required files for common operating systems are provided, so you may only need to uncomment the relevant lines, e.g. for macOS:

X11LIBPATH /usr/X11/lib
X11INCPATH /usr/X11/include

Once the install_software script completes successfully, you will see instructions to set up environment variables to run GAMIT/GLOBK, which is the last step of the installation.