Install of SPC

Instructions for Mac OS

SPC is designed to run in /usr/local/bin/

Preparation

SPC requires gfortran and spicelib

Compiling

Once you've set up your system to compile with gfortran, you need to complete three steps.

  1. Create object files (whatever.o) for every component in the directory "COMMON". You do this by running the script AAmake _ _ COMMON_objects.txt. This was built for csh, so I find that it works well to do:

csh AAmake__COMMON_objects.txt
  1. Build the COMMON.a library. This combines all of the object files into a single library that is used for most SPC processing.

csh AAmake_COMMON_library.txt
  1. Run the script that compiles all of the SPC binaries. It is likely to be warnings, but shouldn't have any errors.

mkdir -p BIN
csh AACOMPILE.TXT

Installing

To complete the installation, you simply copy the items within the <srcpath>/BIN directory.

cp BIN/* /usr/local/bin/