-
Choose a place (JLAB_ROOT) to install the software
A common choice for JLAB_ROOT is /opt/jlab_software:
set JLAB_ROOT=/opt/jlab_software
Create the working directory:
mkdir -p $JLAB_ROOT/2.1
- Get the installation scripts:
cd $JLAB_ROOT
wget http://www.jlab.org/12gev_phys/packages/sources/ceInstall/ceInstall_2.1.tar.gz
tar -zxpvf ceInstall_2.1.tar.gz
-
Set the environment variables. You should put these lines in your login script:
setenv JLAB_ROOT /opt/jlab_software
source $JLAB_ROOT/2.1/ce/jlab.csh
- Start a new shell. Now you should see a log similar to this
> Common Environment Version: <2.1> (Wed Jul7 5 2017)
> Running as ungaro on MauriMP.local
> OS Release: Darwin_macosx10.12-x86_64-clang8.1.0
> JLAB_ROOT set to: /opt/jlab_software
> '/opt/jlab_software/2.1/Darwin_macosx10.12-x86_64-clang8.1.0' is not a directory. Creating it.
!! Attention: BANKS installation check /opt/jlab_software/2.1/Darwin_macosx10.12-x86_64-clang8.1.0/banks/1.2/bin not found
!! Attention: CCDB installation check /opt/jlab_software/2.1/Darwin_macosx10.12-x86_64-clang8.1.0/ccdb/ccdb-1.06.02/lib not found
!! Attention: CLHEP installation check /opt/jlab_software/2.1/Darwin_macosx10.12-x86_64-clang8.1.0/clhep/2.3.4.3/lib not found
!! Attention: EVIO installation check /opt/jlab_software/2.1/Darwin_macosx10.12-x86_64-clang8.1.0/evio/5.1/bin not found
!! Attention: GEANT4 installation check /opt/jlab_software/2.1/Darwin_macosx10.12-x86_64-clang8.1.0/geant4/4.10.02.p03/bin not found
!! Attention: GEMC installation check /opt/projects/gemc/source/gemc not found
!! Attention: JANA installation check /opt/jlab_software/2.1/Darwin_macosx10.12-x86_64-clang8.1.0/jana/0.7.7p1/bin/jana not found
!! Attention: MLIBRARY installation check /opt/projects/mlibrary/lib not found
!! Attention: MYSQL installation check /opt/jlab_software/2.1/Darwin_macosx10.12-x86_64-clang8.1.0/mysql/lib not found
!! Attention: QT installation check /opt/jlab_software/2.1/Darwin_macosx10.12-x86_64-clang8.1.0/qt/5.8.0/5.8/clang_64/lib not found
!! Attention: ROOT installation check /opt/jlab_software/2.1/Darwin_macosx10.12-x86_64-clang8.1.0/root/6.08.04/bin/root-config not found
!! Attention: SCONS installation check /opt/jlab_software/2.1/scons_bm/1.5/site_tools not found
!! Attention: XERCESC installation check /opt/jlab_software/2.1/Darwin_macosx10.12-x86_64-clang8.1.0/xercesc/3.1.4/lib not found
If you do, great. You're ready to run the installation scripts. Every script that you run below will replace the warning log with a successful one.
Notice: if you already have some existing environment variables that you want to keep,
use the option "keepmine":
source $JLAB_ROOT/2.1/ce/jlab.csh keepmine
-
Choose the packages you wish to install by executing the corresponding script:
cd $JLAB_ROOT/2.1/install
./go_clhep
./go_xercesc
./go_qt
./go_geant4
./go_sconsscript
./go_evio
./go_mysql
./go_ccdb
./go_mlibrary
./go_gemc
./go_fields
./go_root
./go_banks
./go_jana
All the packages listed above "go_gemc" are necessary to run gemc.