Difference between revisions of "Build Scripts and Makefiles"

From GlueXWiki
Jump to: navigation, search
(disclaimer, found out recently)
(modify path to get correct cernlib, remove disclaimer)
Line 1: Line 1:
The following steps will build JANA and the Hall D software tree in the directores "jana" and "gluex" respectively, creating them in the current working directory. It is assumed that the support packages (xerces, cernlib, root, etc.) have all been installed previoiusly. All necessary environment variables are set; they will likely not be appropriate for your machine and must be modified to fit your particular environment. This worked for me from a Fedora 7 box. '''So far only links, HDGEANT does not run!'''
+
The following steps will build JANA and the Hall D software tree in the directores "jana" and "gluex" respectively, creating them in the current working directory. It is assumed that the support packages (xerces, cernlib, root, etc.) have all been installed previoiusly. All necessary environment variables are set; they will likely not be appropriate for your machine and must be modified to fit your particular environment. This worked for me from a Fedora 7 box.
  
 
<pre>
 
<pre>
Line 23: Line 23:
 
cd src
 
cd src
 
setenv ROOTSYS /usr/local/src/root/prod
 
setenv ROOTSYS /usr/local/src/root/prod
eval `addpath.pl $ROOTSYS/bin`
 
 
setenv XERCESCROOT /usr/local/xerces-c/prod
 
setenv XERCESCROOT /usr/local/xerces-c/prod
 
setenv XERCES_INCLUDE $XERCESCROOT/include
 
setenv XERCES_INCLUDE $XERCESCROOT/include
Line 29: Line 28:
 
setenv CERN /usr/local/cernlib
 
setenv CERN /usr/local/cernlib
 
setenv CERN_LEVEL 2006
 
setenv CERN_LEVEL 2006
 +
eval `addpath.pl $ROOTSYS/bin $CERN/$CERN_LEVEL`
 
make FC=gfortran DFC=gfortran
 
make FC=gfortran DFC=gfortran
 
cd ../..
 
cd ../..
echo gluex_build.csh done
 
 
</pre>
 
</pre>

Revision as of 17:13, 4 October 2007

The following steps will build JANA and the Hall D software tree in the directores "jana" and "gluex" respectively, creating them in the current working directory. It is assumed that the support packages (xerces, cernlib, root, etc.) have all been installed previoiusly. All necessary environment variables are set; they will likely not be appropriate for your machine and must be modified to fit your particular environment. This worked for me from a Fedora 7 box.

mkdir jana
cd jana
wget http://www.jlab.org/JANA/releases/jana_svn_daily_linux.tgz
tar zxvf jana_svn_daily_linux.tgz
cd jana_svn_daily_linux
setenv JANA_HOME $cwd
rm -rf bin lib include
cd src/JANA
setenv OS `/bin/uname -s`
setenv ARCH `/bin/uname -p`
setenv OSNAME ${OS}-${ARCH}
make clean
make
make install
cd ../../../..
mkdir gluex
cd gluex
svn checkout https://halldsvn.jlab.org/repos/trunk/src
setenv HALLD_HOME $cwd
cd src
setenv ROOTSYS /usr/local/src/root/prod
setenv XERCESCROOT /usr/local/xerces-c/prod
setenv XERCES_INCLUDE $XERCESCROOT/include
setenv LD_LIBRARY_PATH  $ROOTSYS/lib:$XERCESCROOT/lib
setenv CERN /usr/local/cernlib
setenv CERN_LEVEL 2006
eval `addpath.pl $ROOTSYS/bin $CERN/$CERN_LEVEL`
make FC=gfortran DFC=gfortran
cd ../..