WriteToCVMFS
Jump to navigation
Jump to search
How to write to /cvmfs/lz.opensciencegrid.org
# osggrid01.hep.wisc.edu is the cvmfs writer and only accessible through the hep.wisc.edu network # login to osggrid01.hep.wisc.edu via lzlogin01.hep.wisc.edu ssh username@lzlogin01.hep.wisc.edu ssh osggrid01.hep.wisc.edu cd /cvmfs/lz.opensciencegrid.org/ # Write an empty file to the parent directory (don't follow it literally) touch myFile.txt
Building a version of LUXSim
# login to osggrid01.hep.wisc.edu ssh osggrid01.hep.wisc.edu # Setup PATH, ROOTSYS, GEANT4 export ROOTSYS=/cvmfs/lz.opensciencegrid.org/ROOT/v5.34.32/slc6_gcc44_x86_64/root export PATH=${ROOTSYS}/bin:/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/bin export LD_LIBRARY_PATH=${ROOTSYS}/lib:/lib64:/usr/lib64:/lib:/usr/lib source /cvmfs/lz.opensciencegrid.org/geant4/etc/geant4env.sh # go to LUXSim directory cd /cvmfs/lz.opensciencegrid.org/LUXSim # e.g. I will install the latest version of LUXSim # Note that <username> and <passwd> for LUXSim svn repo should be obtained by following instructions given in the page below: # http://teacher.pas.rochester.edu:8080/wiki/bin/view/Lux/UsageSVN svn checkout --username <username> --password <passwd> svn://xenophile.case.edu/LUXSim latest # Find the revision number of latest cd latest/ RevNum=svn info | awk '/Revision/ {print "r"$2}' # Organize the directory by renaming latest to revision number cd /cvmfs/lz.opensciencegrid.org/LUXSim mv latest ${RevNum} cd ${RevNum} make # If this is the latest ( HEAD ) version in the repo, then create a symlink to HEAD cd /cvmfs/lz.opensciencegrid.org/LUXSim ln -s ${RevNum} HEAD
Build CLHEP
# Only login0[1-6].hep.wisc.edu are accessible from outside networks ssh login06.hep.wisc.edu # From login06, login to osggrid01.hep.wisc.edu (this is the cvmfs writer) ssh osggrid01.hep.wisc.edu # Make sure your path is set to these export PATH=/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin # The /scratch is where you would build the package before installing on cvmfs # This prevents unnecessary build files getting into cvmfs mkdirp -p /scratch/$USER cd /scratch/$USER wget http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-2.2.0.4.tgz . tar xvzf clhep-2.2.0.4.tgz mkdir -p clhep_build cd clhep_build # Create CVMFS install area where libraries and binaries will be installed mkdir -p /cvmfs/lz.opensciencegrid.org/CLHEP/2.2.0.4 # Options with cmake cmake -DCMAKE_INSTALL_PREFIX=/cvmfs/lz.opensciencegrid.org/CLHEP/2.2.0.4 ../2.2.0.4/CLHEP make -j8 make test make install # At this point you should see all the libraries in /cvmfs
Build Geant4
# Only login0[1-6].hep.wisc.edu are accessible from outside networks ssh login06.hep.wisc.edu # From login06, login to osggrid01.hep.wisc.edu (this is the cvmfs writer) ssh osggrid01.hep.wisc.edu # Make sure your path is set to these export PATH=/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin # The /scratch is where you would build the package before installing on cvmfs # This prevents unnecessary build files getting into cvmfs mkdirp -p /scratch/$USER cd /scratch/$USER # Get the Geant4 tarball from http://geant4.web.cern.ch/geant4/support/download.shtml tar xvzf geant4.10.02.b01.tar.gz mkdir -p /cvmfs/lz.opensciencegrid.org/geant4/geant4.10.02.b01 mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/cvmfs/lz.opensciencegrid.org/geant4/geant4.10.02.b01 \ -DCLHEP_ROOT_DIR=/cvmfs/lz.opensciencegrid.org/CLHEP/2.2.0.4 \ -DGEANT4_USE_QT=ON -DQT_QMAKE_EXECUTABLE=/usr/lib64 \ -DGEANT4_INSTALL_DATA=ON \ -DGEANT4_INSTALL_EXAMPLES=ON \ ../geant4.10.02.b01 make -j8 make install