Print

Print


Lea,
  See comments below

On Dec 12, 2018, at 5:53 AM, Lea Di Noto <[log in to unmask]<mailto:[log in to unmask]>> wrote:

Dear GENIE support,
I followed the procedure reported here
https://urldefense.proofpoint.com/v2/url?u=https-3A__hep.ph.liv.ac.uk_-7Ecostasa_genie_get-5Fstarted.html&d=DwIFaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=m-HXyHJ8kCwT6sbzoSlYdcpu3Z4Noqd50sLaf0Gm5RY&m=2aLswQkwv-TWILyIQoR6gVlti_D_RHpDffcXIqwuQMk&s=rd3Cx3vRz_uwtcSgzClVYMd_BjN37AuNVrWZXhT53-c&e=

I installed the Third-party software packages in "support" folder inside GENIE main folder

I configured the enviromental variables as

#!/bin/bash
echo "Setting GENIE environment variables..."
export GENIEBASE=/path to /GENIE
export GENIE=$GENIEBASE/Generator
export PYTHIA6=$GENIEBASE/support/pythia6/v6_428/lib
export ROOTSYS=$GENIEBASE/support/root
export LOG4CPP_INC=$GENIEBASE/support/log4cpp/include
export LOG4CPP_LIB=$GENIEBASE/support/log4cpp/lib
export LHAPATH=$GENIEBASE/support/lhapdf
export LHAPDF_INC=$GENIEBASE/support/lhapdf/include
export LHAPDF_LIB=$GENIEBASE/support/lhapdf/lib
export XSECSPLINEDIR=$GENIEBASE/data
export LD_LIBRARY_PATH=$LHAPDF_LIB:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/lib/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LOG4CPP_LIB:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$PYTHIA6:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$GENIE/lib:$LD_LIBRARY_PATH
export PATH=$GENIE/bin:$ROOTSYS/bin:$PATH
unset GENIEBASE


then I configured the GENIE options and the path  as

#!/bin/bash
./configure \
 --prefix=/path to /GENIE/Generator/lib \
--enable-debug \
--enable-gsl \
 --disable-profiler \
  --enable-lhapdf \
  --enable-flux-drivers \
  --enable-geom-drivers \
  --enable-test \
  --enable-nueloss \
  --with-optimiz-level=O2 \
  --with-pythia6-lib=/path to /GENIE/support/pythia6/v6_428/lib \
 --with-lhapdf5-inc=/path to /GENIE/support/lhapdf/include \
  --with-lhapdf5-lib=/path to/GENIE/support/lhapdf/lib \
  --with-libxml2-inc=/usr/include/libxml2 \
 --with-libxml2-lib=/usr/lib \
 --with-log4cpp-inc=/path to/GENIE/support/log4cpp/include \
 --with-log4cpp-lib=/path to/GENIE/support/log4cpp/lib


then when I source configure I got:
The /path to /GENIE/Generator/src/make/Make.config file has been succesfully generated!

The following config options were set:
 GENIE_INSTALLATION_PATH=/path to /GENIE/Generator/lib
 GOPT_ENABLE_LHAPDF5=YES
 GOPT_ENABLE_LHAPDF6=NO
 GOPT_ENABLE_T2K=NO
 GOPT_ENABLE_FNAL=NO
 GOPT_ENABLE_ATMO=NO
 GOPT_ENABLE_NUCLEON_DECAY=NO
 GOPT_ENABLE_NNBAR_OSCILLATION=NO
 GOPT_ENABLE_BOOSTED_DARK_MATTER=NO
 GOPT_ENABLE_FLUX_DRIVERS=YES
 GOPT_ENABLE_GEOM_DRIVERS=YES
 GOPT_ENABLE_MASTERCLASS=NO
 GOPT_ENABLE_TEST=YES
 GOPT_ENABLE_PROFILER=NO
 GOPT_ENABLE_DOXYGEN_DOC=NO
 GOPT_ENABLE_DYLIBVERSION=YES
 GOPT_ENABLE_LOW_LEVEL_MESG=NO
 GOPT_WITH_COMPILER=gcc
 GOPT_WITH_CXX_DEBUG_FLAG=-g
 GOPT_WITH_CXX_OPTIMIZ_FLAG=-O2
 GOPT_WITH_PROFILER_LIB=
 GOPT_WITH_DOXYGEN_PATH=
 GOPT_WITH_PYTHIA6_LIB=/path to/GENIE/support/pythia6/v6_428/lib
 GOPT_WITH_LHAPDF5_LIB=/path to/GENIE/support/lhapdf/lib
 GOPT_WITH_LHAPDF5_INC=/path to/GENIE/support/lhapdf/include
 GOPT_WITH_LHAPDF6_LIB=
 GOPT_WITH_LHAPDF6_INC=
 GOPT_WITH_LIBXML2_INC=/usr/include/libxml2
 GOPT_WITH_LIBXML2_LIB=/usr/lib
 GOPT_WITH_LOG4CPP_INC=/path to/GENIE/support/log4cpp/include
 GOPT_WITH_LOG4CPP_LIB=/path to /GENIE/support/log4cpp/lib
*** To continue building GENIE type: make

but when I do make I got:

Entering directory `/afs/cern.ch/user/l/ldinoto/GENIE/Generator/src/Framework/Numerical'
g++ -c  -W -Wall -fPIC -Wshadow -pthread -m64 -I/afs/cern.ch/user/l/ldinoto/GENIE/support/root/include -g -O2   -Wno-strict-aliasing -ffriend-injection  -I/usr/include/libxml2  -I/afs/cern.ch/user/l/ldinoto/GENIE/support/log4cpp/include -I/afs/cern.ch/user/l/ldinoto/GENIE/support/root/include  -I/afs/cern.ch/user/l/ldinoto/GENIE/support/lhapdf/include -I/usr/include -I/afs/cern.ch/user/l/ldinoto/GENIE/Generator/src/  RandomGen.cxx
RandomGen.cxx:22:22: error: TPythia6.h: No such file or directory
RandomGen.cxx: In member function ‘void genie::RandomGen::SetSeed(long int)’:
RandomGen.cxx:116: error: ‘TPythia6’ was not declared in this scope
RandomGen.cxx:116: error: ‘pythia6’ was not declared in this scope
RandomGen.cxx:116: error: ‘TPythia6’ is not a class or namespace
make[1]: *** [RandomGen.o] Error 1
make[1]: Leaving directory `/afs/cern.ch/user/l/ldinoto/GENIE/Generator/src/Framework/Numerical'
make: *** [framework] Error 2

This is symptomatic of a ROOT installation that is lacking the interface to Pythia6.   The TPythia6 is a ROOT class that serves to be that interface and found as  $ROOTSYS/include/TPythia6.h


ROOT Class Libraries
Recommended version: Please get a recent ROOT6 version. ROOT5 should still work but is no longer supported by GENIE.
Web-site: http://root.cern.ch<http://root.cern.ch/>

Detailed installation instructions are given in http://root.cern.ch/root/Install.html

For a standard GENIE installation the only extra ROOT configuration options you need are the ones required for enabling GSL (via MathMore) and the ROOT/PYTHIA interface. When configuring ROOT, add: `--enable-pythia6', `--enable-mathmore' and `--with-pythia6-libdir=/path/to/pythia/lib'




Of course Phythia6 is installed without any errors...

Can you help me, please?


Thanks,


 Best,


    Lea

--
Lea Di Noto
Istituto Nazionale di Fisica Nucleare Sez.Genova
Via Dodecaneso, 33
16145 Genova
Tel. 0103536652

########################################################################

To unsubscribe from the NEUTRINO-MC-SUPPORT list, click the following link:
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.jiscmail.ac.uk_cgi-2Dbin_webadmin-3FSUBED1-3DNEUTRINO-2DMC-2DSUPPORT-26A-3D1&d=DwIFaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=m-HXyHJ8kCwT6sbzoSlYdcpu3Z4Noqd50sLaf0Gm5RY&m=2aLswQkwv-TWILyIQoR6gVlti_D_RHpDffcXIqwuQMk&s=WpxAdDF2cvs7AlA5o59GQ2jxVagu0ew4ce8Zvf4Tni0&e=


-robert

Robert Hatcher
Computational Physics Developer

Scientific Computing Division
Fermi National Accelerator Laboratory
PO Box 500, MS 234, Batavia, IL 60510, USA
[log in to unmask]<mailto:[log in to unmask]>
Office: 630-840-3102<tel:630-840-3102>
Cell:    630-234-0091<tel:630-234-0091>




########################################################################

To unsubscribe from the NEUTRINO-MC-SUPPORT list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=NEUTRINO-MC-SUPPORT&A=1