HOWTO build the CCDB

From GlueXWiki
Jump to: navigation, search

Method A

  1. Grab a distribution from
  2. Untar it and look at either install.linux.txt or, as appropriate, in the top-level directory.

Method B

1. Checkout a helper makefile:

git clone

2. Do the make:

make -f build_scripts/Makefile_ccdb CCDB_VERSION=0.08 # or 0.09 or your preferred version

A source code tarball is retrieved from the appropriate web server and the build is done.

3. Set-up your environment for csh:

setenv CCDB_HOME `pwd`/ccdb_0.08
source $CCDB_HOME/environment.csh
setenv CCDB_CONNECTION mysql://ccdb_user@hallddb/ccdb

for bash:

export CCDB_HOME=`pwd`/ccdb_0.08
source $CCDB_HOME/environment.bash
export CCDB_CONNECTION=mysql://

4. As a quick check on your installation, launch the CCDB shell

ccdb -i

SQLite Version

Instructions on how to access the sqlite version of the ccdb and use a private copy to test calibrations: