| <p>Disclaimer: I wrote this for Owens, which I think will also work on Pitzer. I recommend following Steven's instructions, and use mine if it fails to build. J</p>
<p>1. Submit a batch job so the processing resources are not limited (change the project ID if needed.):</p>
<p><em>qsub -A PAS0654 -I -l nodes=1:ppn=4,walltime=2:00:00</em></p>
<p>2. Reset and load the following modules (copy and paste as it is):</p>
<p><em>module reset<br />
module load cmake/3.7.2<br />
module load python/2.7.latest<br />
module load fftw3/3.3.5</em></p>
<p>3. Do <em>echo $FFTW3_HOME</em> and make sure it spits out "/usr/local/fftw3/intel/16.0/mvapich2/2.2/3.3.5". If it <strong>doesn't</strong>, do </p>
<p> </p>
<p><em>export FFTW3_HOME=/usr/local/fftw3/intel/16.0/mvapich2/2.2/3.3.5</em></p>
<p>Otherwise, just do</p>
<p> </p>
<p><em>export FFTW_DIR=$FFTW3_HOME</em></p>
<p>4. Do (Change <em>DCMAKE_INSTALL_PREFIX </em>and point it to the root source directory)</p>
<p><em>cmake -DCMAKE_C_COMPILER=`which gcc` \<br />
-DCMAKE_CXX_COMPILER=`which g++` \<br />
-DCMAKE_INSTALL_PREFIX=${HOME}/local/oakley/ROOT-6.12.06 \<br />
-DBLAS_mkl_intel_LIBRARY=${MKLROOT}/lib/intel64 \<br />
../root-6.12.06 2>&1 | tee cmake.log</em></p>
<p>It will configure root so it can be installed in the machine (takes about 5 minutes).</p>
<p>5. Once it is configured, do the following to build root (takes about 45 min)</p>
<p><em>make -j4 2>&1 | tee make.log</em></p>
<p>6. Once it's done, do </p>
<p><em>make install</em></p>
<p>In order to run it, now go into the directory, then cd bin. Once you're in there you should see a .sh called 'thisroot.sh'. Type 'source thisroot.sh'. You should now be able to type 'root' and it will run. Note that you must source this EVERY time you log into OSC. The smart thing to do would be to put this into your bash script. </p>
<p>(Second procedure from S. Prohira)</p>
<p>1. download ROOT: https://root.cern.ch/downloading-root (whatever the latest pro release is)</p>
<p>2. put the source tarball somewhere in your directory on ruby and expand it into the "source" folder</p>
<p>3. on ruby, open your ~/.bashrc file and add the following lines:</p>
<p><em>export CC="/usr/local/gnu/7.3.0/bin/gcc"<br />
export CXX="/usr/local/gnu/7.3.0/bin/g++"<br />
module load cmake<br />
module load python<br />
module load gnu/7.3.0</em></p>
<p>4. then run: <em>source ~/.bashrc</em></p>
<p>5. make a "build" directory somewhere else on ruby called 'root' or 'root_build' and cd into that directory.</p>
<p>6. do: <em>cmake /path/to/source/folder </em>(e.g. the folder you expanded from the .tar file above. should finish with no errors.) here you can also include the -D flags that you want (such as minuit2 for the anita tools)<br />
-for example, the ANITA tools need you to do: cmake -Dminuit2:bool=true /path/to/source/folder.</p>
<p>7. do: <em>make -j4</em> (or the way that Jorge did it above, if you want to submit it as a batch job (and not be a jerk running a job on the login nodes like i did))</p>
<p>8. add the following line to your .bashrc file (or .profile, whatever startup file you prefer):</p>
<p><em>source /path/to/root/build/directory/bin/thisroot.sh</em></p>
<p>9. enjoy root!</p>
<p> </p> |