-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Tom,
I'm not sure if it helps, but here's a summary of the steps I took to
install GENIE 2.6.0 on a Fermi Scientific Linux 5 (Lederman) system.
Since your problem appears to be in LHAPDF, you might try compiling
LHAPDF with the option --enable-low-memory.
Is it only genie that's not working or also tools like gmkxspl?
Cheers,
Joachim
On 05/25/2011 02:57 PM, Tom Roberts wrote:
> I am a brand new user of Genie, and I have trouble installing it. I am an expert
> C++ developer with considerable experience on Linux, Windows, Mac OS X, and Root.
>
> This is Mac OS X 10.5.8 (Leopard). gfortran is in /usr/local/bin, but I don't
> remember where it came from. g77 and f77 are 1-line scripts in $HOME/bin that
> run gfortran "$@".
>
> I am installing into $HOME/Neutrino and everything seemed to build OK (after
> some futzing). Note I did not download any data files for lhapdf; I did download
> gxspl-t2k-v2.6.2.xml.gz but don't know where to unpack it. I'm not yet to the
> point where the data files are needed.
>
>
> Note that to get genie to come close to starting up, I had to do some ugly
> things in $HOME/Neutrino/lib:
> ln -s libxml2.dylib libxml2.so
> ln -s liblog4cpp.dylib liblog4cpp.so
>
> My configuration is below, but first, here is the problem when I try to run genie:
>
> $ export DYLD_LIBRARY_PATH=$HOME/Neutrino/lib:$HOME/Neutrino/v6_412/lib
> $ export
> PATH=$HOME/Neutrino/bin:$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/X11R6/bin:/sw/bin:.
> $ export GENIE=$HOME/Neutrino/Genie-2.6.2
> $ genie
> ... usual Root startup stuff, 5.26/00, Root splash screen is OK ...
> root [0]
> Processing /Users/tjrob/Neutrino/Genie-2.6.2/src/scripts/gcint/genie.C...
> dlopen error: dlopen(/Users/tjrob/Neutrino/lib/libGPDF.so, 9): Library not
> loaded: /Users/tjrob/Neutrino/lib/libLHAPDF.0.dylib
> Referenced from: /Users/tjrob/Neutrino/lib/libGPDF.so
> Reason: no suitable image found. Did find:
> /Users/tjrob/Neutrino/lib/libLHAPDF.0.dylib: out of address space
> /Users/tjrob/Neutrino/lib/libLHAPDF.0.dylib: out of address space
> Load Error: Failed to load Dynamic link library /Users/tjrob/Neutrino/lib/libGPDF.so
> *** Interpreter error recovered ***
>
> *** Break *** bus error
> sh: /etc/root/gdb-backtrace.sh: No such file or directory
> Root > Function genie() busy flag cleared
> .q
>
>
> It's pretty scary to run out of address space. Google was not helpful.
> Any suggestions?
>
> Is there any way to link all those libraries statically?
>
>
> Tom Roberts
>
> ---------------------
>
> Here is how I configured the external libraries and Genie:
>
> log4cpp-1.0
> (Downloaded from website, because the cvs version failed to build)
> ./configure --prefix=$HOME/Neutrino
> make
> make install
>
> libxml2 is from Fink in /sw/lib, but due to conflicts with libJPEG, I cannot put
> /sw/lib into DYLD_LIBRARY_PATH (a long-standing issue). So I did this:
> ln -s /sw/lib/libxml* $HOME/Neutrino/lib
>
> lhapdf-5.8.5
> (Download version 5.8.5 from website)
> ./configure --prefix=$HOME/Neutrino
> make
> make install
>
> pythia6
> source Genie-2.6.2/src/scripts/build/ext/build_pythia6.sh
> (created directory v6_412 -- unkind to not include pythia in the name)
>
> root_v5.26.00
> (download root 5.26.00 from the website)
> ./configure macosx --prefix=$HOME/Neutrino \
> --enable-pythia6 --with-pythia6-libdir=$HOME/Neutrino/v6_412/lib
> make
> make install
>
> Genie-2.6.2
> (downloaded from website)
> ./configure \
> --prefix=$HOME/Neutrino \
> --disable-profiler \
> --disable-validation-tools \
> --disable-neut-cascade \
> --disable-cernlib \
> --enable-lhapdf \
> --enable-flux-drivers \
> --enable-geom-drivers \
> --disable-doxygen \
> --enable-test \
> --disable-viewer \
> --enable-mueloss \
> --enable-dylibversion \
> --enable-event-server \
> --enable-t2k \
> --enable-numi \
> --enable-atmo \
> --enable-rwght \
> --disable-debug \
> --with-optimiz-level=O2 \
> --with-pythia6-lib=$HOME/Neutrino/v6_412/lib \
> --with-lhapdf-inc=$HOME/Neutrino/include \
> --with-lhapdf-lib=$HOME/Neutrino/lib \
> --with-libxml2-inc=/sw/include/libxml2 \
> --with-libxml2-lib=/sw/lib \
> --with-log4cpp-inc=$HOME/Neutrino/include \
> --with-log4cpp-lib=$HOME/Neutrino/lib
> make
> make install
- --
- ----------------------------------------------------------------------
Joachim Kopp Theoretical Physics Dep., Fermilab
email: [log in to unmask] P.O. Box 500
phone: +1 (630) 840-6383 Batavia, IL 60510
web: home.fnal.gov/~jkopp USA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk3dcskACgkQsIQ5KBW3XhacbwCfcsJl/smdD0uYTrlmZdz6bBTW
aeAAniEAdIlIYuPe8tRLJd0swGKVW7DR
=s+WI
-----END PGP SIGNATURE-----
# How to install the GENIE neutrino event generator on thpc09
# -----------------------------------------------------------
# Make sure libg2c is properly installed. I needed to do
cd ~/software/installed/lib
ln -s libg2c.so.0 libg2c.so
# Download LHAPDF (http://www.hepforge.org/downloads/lhapdf) and build it:
FC=gfortran-4.5.1 ./configure --prefix=/home/jkopp/software/installed/
make
make install
# Download LHAPDF PDF sets, make sure GRV98lo and GRV98nlo are included
lhapdf-getdata CTEQ6ll CTEQ66 lomod MCal GRV98*
# or
lhapdf-getdata --all
# Download and build log4cpp (http://sourceforge.net/projects/log4cpp/files/)
./configure --prefix=/home/jkopp/software/installed/
make
make install
# (Re-)compile root with Pythia6 support
./configure --build=debug --enable-pythia6 \
--with-pythia6-libdir=/scratch/jkopp/software/pythia6/v6_412/lib/ \
--etcdir=/home/jkopp/software/installed/etc \
--prefix=/home/jkopp/software/installed/ \
--with-cc="gcc-4.5.1" --with-f77=gfortran-4.5.1 --with-cxx=g++-4.5.1
# Make sure that root reads its configuration file (system.rootrc or ~/.rootrc),
# and that the plugin path set in there is correct. In particular, make sure
# that the command
# gROOT->GetPluginManager()->FindHandler("TVirtualTreePlayer")
# does not return NULL
# Copy or link Pythia libraries to a place where GENIE can find them
cp /scratch/jkopp/software/pythia6/v6_412/lib/* ~/software/installed/lib
# Download and build GENIE
mkdir genie
svn co https://svn.hepforge.org/genie/branches/R-2_6_0 .
export GENIE=$(pwd)
./configure --prefix=/home/jkopp/software/installed/ \
--enable-debug \
--enable-atmo \
--enable-viewer \
--enable-test \
--enable-vle-extension \
--enable-vhe-extension \
--with-lhapdf-lib=/home/jkopp/software/installed/lib/ \
--with-lhapdf-inc=/home/jkopp/software/installed/include/ \
--with-pythia6-lib=/scratch/jkopp/software/pythia6/v6_412/lib/
gmake
gmake install
# To run GENIE, define
export LHAPATH=$HOME/software/installed/share/lhapdf/PDFsets/
export GENIE=/scratch/jkopp/software/genie/
|