Difference between revisions of "HOWTO build the CCDB"

From GlueXWiki
Jump to: navigation, search
(Created page with "1. Checkout a helper makefile: svn checkout https://halldsvn.jlab.org/repos/trunk/scripts/build_scripts 2. Do the make: make -f build_scripts/Makefile_ccdb CCDB_VERSION=0.06...")
 
Line 6: Line 6:
  
 
  make -f build_scripts/Makefile_ccdb CCDB_VERSION=0.06
 
  make -f build_scripts/Makefile_ccdb CCDB_VERSION=0.06
 +
 +
Checkout of the code from the 12 GeV subversion repository is included as a make target. See note below.
  
 
3. Set-up your environment
 
3. Set-up your environment
Line 22: Line 24:
  
 
  ccdb -i
 
  ccdb -i
 +
 +
Note: some of you may have difficulties checkout out the ccdb code. You have to be a member of the 12gev_phys group at JLab to have privilege to access the repository [is this still true?]. Alternately you can download a tarball from https://halldweb1.jlab.org/downloads/ccdb/ccdb_0.06.tar.gz . Then step (2) becomes:
 +
 +
2. Do the make:
 +
 +
wget https://halldweb1.jlab.org/downloads/ccdb/ccdb_0.06.tar.gz
 +
make -f build_scripts/Makefile_ccdb CCDB_VERSION=0.06

Revision as of 13:19, 11 January 2013

1. Checkout a helper makefile:

svn checkout https://halldsvn.jlab.org/repos/trunk/scripts/build_scripts

2. Do the make:

make -f build_scripts/Makefile_ccdb CCDB_VERSION=0.06

Checkout of the code from the 12 GeV subversion repository is included as a make target. See note below.

3. Set-up your environment

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

or

export CCDB_HOME=`pwd`/ccdb_0.06
. $CCDB_HOME/environment.sh
export CCDB_CONNECTION=mysql://ccdb_user@hallddb/ccdb

4. Launch the CCDB shell

ccdb -i

Note: some of you may have difficulties checkout out the ccdb code. You have to be a member of the 12gev_phys group at JLab to have privilege to access the repository [is this still true?]. Alternately you can download a tarball from https://halldweb1.jlab.org/downloads/ccdb/ccdb_0.06.tar.gz . Then step (2) becomes:

2. Do the make:

wget https://halldweb1.jlab.org/downloads/ccdb/ccdb_0.06.tar.gz
make -f build_scripts/Makefile_ccdb CCDB_VERSION=0.06