-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from DUNE/feature/Alma9_working_Makefile
Change setup.sh and Makefile for Almalinux 9
- Loading branch information
Showing
4 changed files
with
68 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
# @Liam on Slack when this breaks | ||
|
||
echo "Make sure you source this in the top level directory of dune-tms/" | ||
|
||
# Setup FNAL spack | ||
source /cvmfs/larsoft.opensciencegrid.org/spack-packages/setup-env.sh | ||
# Source Liam's spack environment that includes dune_spack repository and package binaries | ||
source /exp/dune/data/users/losulliv/spack/my_spack/setup-env.sh | ||
|
||
# Load up a load of schtuff with spack | ||
# - All the good stuff is built with gcc 12.2.0 toolchain, load newer cmake | ||
# - Load root, geant4, clhep, expatn and edep-sim built with above toolchain | ||
spack load [email protected] && echo "Setup gcc..." | ||
spack load [email protected]%[email protected] && echo "Setup cmake..." | ||
spack load [email protected]%[email protected] && echo "Setup root..." | ||
spack load [email protected]%[email protected] && echo "Setup geant4..." | ||
spack load [email protected]%[email protected] && echo "Setup clhep..." | ||
spack load [email protected]%[email protected] && echo "Setup expat..." | ||
spack load [email protected]%[email protected] && echo "Setup edep-sim..." | ||
|
||
export TMS_DIR=${PWD} | ||
export PATH=${PATH}:${TMS_DIR}/bin | ||
if [ "${LD_LIBRARY_PATH}x" == "x" ]; then | ||
LD_LIBRARY_PATH=${TMS_DIR}/lib | ||
else | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${TMS_DIR}/lib | ||
fi | ||
|
||
# Add edep-sim library path if available | ||
if [ "${EDEP_ROOT}x" != "x" ]; then | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${EDEP_ROOT}/lib | ||
fi | ||
|
||
# Add edep-sim library path if available | ||
which clhep-config > /dev/null 2>&1 | ||
if [ $? ]; then | ||
CLHEP_ROOT=`clhep-config --prefix | sed 's/\"//g'` # (: | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CLHEP_ROOT}/lib | ||
fi | ||
|
||
echo "TMS_DIR = ${TMS_DIR}" | ||
echo "LD_LIBRARY_PATH = ${LD_LIBRARY_PATH}" | ||
echo "Setup TMS environment :)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters