WriteToCVMFS: Difference between revisions
Jump to navigation
Jump to search
Line 112: | Line 112: | ||
# Make sure your path is set to these |
# Make sure your path is set to these |
||
export PATH=/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin |
export PATH=$PATH:/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin |
||
# The /scratch is where you would build the package before installing on cvmfs |
# The /scratch is where you would build the package before installing on cvmfs |
Revision as of 19:40, 11 August 2017
How to write to /cvmfs/lz.opensciencegrid.org
# lzsoft.hep.wisc.edu is the cvmfs writer and only accessible through the hep.wisc.edu network # login to lzsoft.hep.wisc.edu via lzlogin01.hep.wisc.edu ssh username@lzlogin01.hep.wisc.edu ssh lzsoft.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
*** THESE INSTRUCTIONS ARE OBSOLETE. *** For the latest LZ simulation software, please see http://teacher.pas.rochester.edu:8080/wiki/bin/view/Lz/IntroToBACCARAT # login to lzsoft.hep.wisc.edu ssh lzsoft.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 source geant4/geant4.9.5.p02/bin/geant4.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
*** THESE INSTRUCTIONS ARE OBSOLETE. *** For the latest LZ simulation software, please see http://teacher.pas.rochester.edu:8080/wiki/bin/view/Lz/IntroToBACCARAT # Only login0[1-6].hep.wisc.edu are accessible from outside networks ssh login06.hep.wisc.edu # From login06, login to lzsoft.hep.wisc.edu (this is the cvmfs writer) ssh lzsoft.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 login.hep.wisc.edu # From there, login to lzsoft.hep.wisc.edu (this is the cvmfs writer) ssh lzsoft.hep.wisc.edu # gcc 4.8.4, cmake 3.3, and Xerces-c are required. # They can be found here: # /cvmfs/sft.cern.ch/lcg/releases/LCG_79/gcc/4.8.4/x86_64-slc6 # /cvmfs/lz.opensciencegrid.org/cmake # /cvmfs/lz.opensciencegrid.org/xerces-c # Make sure your path is set to these export PATH=$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.03.p02.tar.gz mkdir -p /cvmfs/lz.opensciencegrid.org/geant4/geant4.10.03.p02 mkdir -p build cd build source /cvmfs/sft.cern.ch/lcg/releases/LCG_79/gcc/4.8.4/x86_64-slc6/setup.sh /cvmfs/lz.opensciencegrid.org/cmake/cmake-3.3.2-Linux-x86_64/bin/cmake \ -DCMAKE_INSTALL_PREFIX=/cvmfs/lz.opensciencegrid.org/geant4/geant4.10.03.p02 \ -DGEANT4_USE_QT=ON \ -DGEANT4_INSTALL_DATA=ON \ -DGEANT4_USE_GDML=ON \ -DGEANT4_USE_OPENGL_X11=ON \ -DXERCESC_ROOT_DIR=/cvmfs/lz.opensciencegrid.org/xerces-c/xerces-c-3.1.4 \ -DCMAKE_C_COMPILER:FILEPATH=/cvmfs/sft.cern.ch/lcg/releases/LCG_79/gcc/4.8.4/x86_64-slc6/bin/gcc \ -DCMAKE_CXX_COMPILER:FILEPATH=/cvmfs/sft.cern.ch/lcg/releases/LCG_79/gcc/4.8.4/x86_64-slc6/bin/g++ \ ../geant4.10.03.p02 make make install # cc appears to be missing from gcc 4.8.4. Add it to Geant4: cd /cvmfs/lz.opensciencegrid.org/geant4/geant4.10.03.p02/bin ln -s /cvmfs/sft.cern.ch/lcg/releases/LCG_79/gcc/4.8.4/x86_64-slc6/bin/gcc cc # Create a Geant4 environment script like the following that sets the path for gcc 4.8.4 and cmake 3.3 . /cvmfs/lz.opensciencegrid.org/geant4/geant4.10.03.p02/bin/geant4.sh . /cvmfs/sft.cern.ch/lcg/releases/LCG_79/gcc/4.8.4/x86_64-slc6/setup.sh export PATH=/cvmfs/lz.opensciencegrid.org/cmake/cmake-3.3.2-Linux-x86_64/bin/:${PATH}