Print

Print


I found the --enable-low-memory option to LHAPDF, and it enabled me to get 
further. (Joachim Kopp also suggested I try it.)

After rebuilding LHAPDF and Genie, I now get:
... libGVHE.so does not exist ...
This looks like an inconsistency in the Genie makefile(s) or code. "configure 
--help" says that VHE is experimental. I added --enable-vhe-extension to my 
configure command and re-built Genie.

Note that "make distclean" has an infinite loop. (It's needed to do a second 
"make install".)

Now the "genie" command starts up without error messages.

I then realized that it is the "gevgen" program I am interested in. It also 
starts up without error messages, presenting the Genie banner, a bunch of INFO 
messages, and its Syntax.

So it looks like my build problems are over, assuming that --enable-low-memory 
won't prevent me from doing what I need to do.

Now I need to learn how to actually use it for something useful....

Thanks to all.

Tom Roberts


On 5/25/11 5/25/11 - 2: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