Skip to Content.
Sympa Menu

sphenix-software-l - [Sphenix-software-l] new setup_local.csh (.sh) scripts for setting up local install area

sphenix-software-l AT lists.bnl.gov

Subject: sPHENIX discussion of software

List archive

Chronological Thread  
  • From: pinkenburg <pinkenburg AT bnl.gov>
  • To: "sphenix-software-l AT lists.bnl.gov" <sphenix-software-l AT lists.bnl.gov>
  • Subject: [Sphenix-software-l] new setup_local.csh (.sh) scripts for setting up local install area
  • Date: Wed, 15 May 2019 10:49:03 -0400

Hi folks,

with the advent of the ROOT_INCLUDE_PATH setting up your local install area for use is a bit more involved than it used to be. Under root5 you just had to tweak the LD_LIBRARY_PATH but with root6 it has to find the matching includes, otherwise you'll get really strange crashes.

There is a new script
/opt/sphenix/core/bin/setup_local.csh <your install area>
/opt/sphenix/core/bin/setup_local.sh for sPHENIX accounts

as arguments it needs your install area - if you have more than one (you should ask yourself why you would do this) you can add more than one install area in the argument list, the first one taking precedence. This script will tweak all needed environment variables, it'll prepend your install/bin to the path, install/lib to the LD_LIBRARY_PATH and some magic to straighten our the ROOT_INCLUDE_PATH (which sadly needs more than just prepending install/include). It will print out the new LD_LIBRARY_PATH and path so you can see what you are running with. The ROOT_INCLUDE_PATH tends to be humongous, printing it wouldn't be useful.

With the exception of the ROOT_INCLUDE_PATH, this script will not reset those paths, if you call it multiple times it will just prepend the new install area to the paths (and it will not strip duplicates). If you want to start from scratch, reset you environment first with

source /opt/sphenix/core/bin/sphenix_setup.csh -n
source /opt/sphenix/core/bin/sphenix_setup.sh -n for sPHENIX

and then source the setup_local script.

Chris

--
*************************************************************

Christopher H. Pinkenburg ; pinkenburg AT bnl.gov
; http://www.phenix.bnl.gov/~pinkenbu

Brookhaven National Laboratory ; phone: (631) 344-5692
Physics Department Bldg 510 C ; fax: (631) 344-3253
Upton, NY 11973-5000

*************************************************************




  • [Sphenix-software-l] new setup_local.csh (.sh) scripts for setting up local install area, pinkenburg, 05/15/2019

Archive powered by MHonArc 2.6.24.

Top of Page