Difference between revisions of "HOWTO build the CCDB"

From GlueXWiki
Jump to: navigation, search
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
=Method A=
 +
 +
# Grab a distribution from https://halldweb.jlab.org/dist
 +
# Untar it and look at either install.linux.txt  or install.windows.txt, as appropriate, in the top-level directory.
 +
 +
=Method B=
 +
 
1. Checkout a helper makefile:
 
1. Checkout a helper makefile:
  
  svn checkout https://halldsvn.jlab.org/repos/trunk/scripts/build_scripts
+
  git clone https://github.com/jeffersonlab/build_scripts
  
 
2. Do the make:
 
2. Do the make:
  
  make -f build_scripts/Makefile_ccdb CCDB_VERSION=0.06
+
  make -f build_scripts/Makefile_ccdb CCDB_VERSION=0.08 # or 0.09 or your preferred version
  
Checkout of the code from the 12 GeV subversion repository is included as a make target. See note below.
+
A source code tarball is retrieved from the appropriate web server and the build is done.
  
3. Set-up your environment
+
3. Set-up your environment for csh:
  
  setenv CCDB_HOME `pwd`/ccdb_0.06
+
  setenv CCDB_HOME `pwd`/ccdb_0.08
 
  source $CCDB_HOME/environment.csh
 
  source $CCDB_HOME/environment.csh
 
  setenv CCDB_CONNECTION mysql://ccdb_user@hallddb/ccdb
 
  setenv CCDB_CONNECTION mysql://ccdb_user@hallddb/ccdb
  
or
+
for bash:
  
  export CCDB_HOME=`pwd`/ccdb_0.06
+
  export CCDB_HOME=`pwd`/ccdb_0.08
  . $CCDB_HOME/environment.sh
+
  source $CCDB_HOME/environment.bash
  export CCDB_CONNECTION=mysql://ccdb_user@hallddb/ccdb
+
  export CCDB_CONNECTION=mysql://ccdb_user@hallddb.jlab.org/ccdb
  
4. Launch the CCDB shell
+
4. As a quick check on your installation, launch the CCDB shell
  
 
  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?]. Also, subversions checkouts have been flaky lately. Alternately you can download a tarball from https://halldweb1.jlab.org/download/ccdb/ccdb_0.06.tar.gz . Then step (2) becomes:
+
=SQLite Version=
 
+
Instructions on how to access the sqlite version of the ccdb and use a private copy to test calibrations: https://halldweb.jlab.org/wiki/index.php/SQLite-form_of_the_CCDB_database
2. Do the make:
+
 
+
wget https://halldweb1.jlab.org/download/ccdb/ccdb_0.06.tar.gz
+
tar zxvf ccdb_0.06.tar.gz
+
make -f build_scripts/Makefile_ccdb CCDB_VERSION=0.06
+

Latest revision as of 11:55, 20 February 2020

Method A

  1. Grab a distribution from https://halldweb.jlab.org/dist
  2. Untar it and look at either install.linux.txt or install.windows.txt, as appropriate, in the top-level directory.

Method B

1. Checkout a helper makefile:

git clone https://github.com/jeffersonlab/build_scripts

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://ccdb_user@hallddb.jlab.org/ccdb

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: https://halldweb.jlab.org/wiki/index.php/SQLite-form_of_the_CCDB_database