Setting up japan
From PREX Wiki
Revision as of 21:36, 22 July 2019 by Catherinef (talk | contribs) (Created page with "== Getting Started == # Login to the apar account on aonl1: <code>ssh apar@aonl1 </code> # Create a directory for output file storage #* Making your own folder is important, o...")
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Getting Started
- Login to the apar account on aonl1:
ssh apar@aonl1
- Create a directory for output file storage
- Making your own folder is important, otherwise whatever you change in your directory will be changed in main prex-prompt.
- Right now, aonl2 has space.
mkdir /aonl2/work1/my_directory/japanOutput
- Create a directory for the code
- Go to your own personal apar directory. If you don't have one, make one.
- e.g. if your directory name is my_directory, then
cd ~/my_directory
- e.g. if your directory name is my_directory, then
- Make a new folder inside your directory
mkdir prompt
- Go to your own personal apar directory. If you don't have one, make one.
- Clone the code from github
cd prompt
git clone https://github.com/JeffersonLab/japan.git
- Set the environment to use ROOT version 6
- Create a file called reset_env_japan.csh in the new prex-prompt folder. Copy and paste the following code into it:
setenv PATH `echo $PATH | sed 's/:/\n/g' | grep -v "4.34.36" |grep -v ROOT | awk 'NR==1{printf"%s",$1}; NR>1{printf":%s",$1}'` setenv LD_LIBRARY_PATH `echo $LD_LIBRARY_PATH | sed 's/:/\n/g' | grep -v "5.34.36" | grep -v ROOT | awk 'NR==1{printf"%s",$1}; NR>1{printf":%s",$1}'` setenv ROOTSYS /adaqfs/apps/ROOT/6.14-04 <\code> setenv PATH "${ROOTSYS}/bin:${PATH}" setenv LD_LIBRARY_PATH "${ROOTSYS}/lib:${LD_LIBRARY_PATH}" setenv QW_DATA /adaq1/data1/apar setenv QW_ROOTFILES /aonl2/work1/my_directory/japanOutput
Finally, build and make:
mkdir build cd build source ../reset_env_japan.csh cmake ../ make