Skip to content
Duncan McGreggor edited this page Feb 3, 2016 · 2 revisions

Basics

The project README provides basic information on how to build CCDC. The short version is this:

$ make

This wiki page is for covering topics that are more focused than the general content of a README file. Some of the specific information that was originally there has been moved here instead.

Ubuntu Dependencies

On Ubuntu, you will need the following packages installed in order to compile the CCDC C library:

$ sudo apt-get install build-essential
$ sudo apt-get install libgsl0-dev libgsl0ldbl gsl-bin
$ sudo apt-get install gfortran

The classification tool requires the additional installs:

$ sudo apt-get install libmatio-dev libmatio2

CentOS Dependencies

TBD

Overriding Makefile Variables

The CCDC Makefile defines several variables using the override operator ?=, allowing you to provide different values for these via command line or environment variables. The variables are as follows:

  • BIN
  • CC
  • XML2INC
  • ESPANIC
  • GSL_SCI_INC
  • GSL_SCI_LIB
  • FORTRAN
  • HDF5INC
  • HDF5LIB
  • MATIOLIB

Note that some of these may no longer be used, but are maintained (for now) for backwards compatibility (users of older versions of CCDC who wrote scripts wrapping the original Makefile).

If, for example, you want to compile with cc instead of gcc, to install the executable(s) into your home directory's bin dir, and have a non-standard include location for libxml2, you would do the following:

$ CC=cc BIN=~/bin XML2INC=/opt/include/libxml2/libxml make
Clone this wiki locally