HowTo Compile the CG2 Source Code
Download the source code here.
If you are using the Intel compilers, first make sure that your
environment is properly set-up. Add the following lines into
.bashrc, .cshrc, .login, or .profile depending on your default shell.
The exact path may differ slightly depending on your installation
and the version of the Intel compiliers you are using. This
information is correct for the default install of Version 8.2 on
IA32 Linux. The Sun compilers do not require any
modification to your path.
source /opt/intel_fc_80/bin/ifortvars.sh
source /opt/intel_cc_80/bin/iccvars.sh
source /opt/intel/mkl72/tools/environment/mklvars32.sh
- Check out the entire repository (see Download page)
- If make is available on your system then you can use the Makefile
to compile. Otherwise you can use the Makefile as a guide to
compile the program manually. Type make -f <Makefile_xxxx>
while in both the cg2_4v3 and groups directory. The binaries should now be created..
- Move each binary to the bin directory.
- Add the location of the binaries to your path.
The following lines will add the binaries to your path if they are
installed in your home directory. If you are installing the
binaries for multiple users, the binaries could be placed in a standard
location such as /usr/local/bin.
#Include the CG Binaries in the path
export PATH=$PATH:~/cg2f90/bin
You should now be ready to run cg2_4v3 and the grouping program, groups.
Return to the HowTo or Main page.