Re: rootfluka example

From: Vassili Maroussov <Vassili.Maroussov_at_cern.ch>
Date: Tue, 23 Feb 2010 01:08:16 +0100

Dear Marco,

Thank you so much! Initially I've included the current directory in the
LD_LIBRARY_PATH as "./", but it doesn't work for the following reason:
the "rfluka" script first makes "cd" to a temporary subdirectory
(fluka_XXXX) and then starts the executable, so the current directory is
"./fluka_XXXX". Another (a bit more general...) solution, to include the
"../" in the LD_LIBRARY_PATH works perfectly. Thank you again. Now I'm
trying to make a step further, to link FLUKA with static ROOT libraries
(which can be obtained with "./configure ; make ; make static". Actually
for the ROOT version 5.26.00 "make static" produces several static ROOT
libraries and I merge manually libRoot.a and libpcre.a) The goal is to
obtain a custom FLUKA executable which can produce the ROOT output both
on 32- and 64-bit architectures with no specific requirements for the
ROOT version installed, if any (all we need is inside the rootfluka).
I've attached the Makefile.static I'm using to produce such a
statically linked fluka executable. However, "make -f Makefile.static"
makes the executable, but the statically linked rootfluka cases a core
dump :-( Don't know why...

Regards,

Vassili

On 02/22/2010 11:33 PM, Marco Calviani wrote:
>
> Dear Vassili,
>
> In order to properly run the example it is necessary to have a careful
> look at the settings of environmental variables.
> Did you try to include your current directory in the LD_LIBRARY_PATH?
> Assuming your executable is located in /home/testuser/fluka/example:
>
> $ export LD_LIBRARY_PATH=/home/testuser/fluka/example:$LD_LIBRARY_PATH
>
> In this case I'm able to run the above mentioned example.
>
> Cheers,
> Marco
>
>
> On Feb 22, 2010, at 7:33 PM, Vassili Maroussov wrote:
>
> > Dear FLUKA users and maintainers,
> >
> > I cannot make working the rootfluka example
> > (http://www.fluka.org/fluka.php?id=examples?=example3&node=4
> <http://www.fluka.org/fluka.php?id=examples&sub=example3&node=4>) using
> > files given in http://www.fluka.org/content/examples/example.tar.gz The
> > "make" produces the rootfluka executable, but it hangs up (becomes
> > zombie) while trying to run with Flair, then timed out. Below is the
> > session (with some comments) with use of "rfluka":
> >
> > *** Checking if a proper environment variables are set ***
> >
> > [testuser_at_Ezhik-HDX18-i386 example]$ env | grep ROOT
> > LD_LIBRARY_PATH=/usr/local/ROOT/26.00-g34/lib:.
> >
> PATH=/usr/local/ROOT/26.00-g34/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/testuser/bin
> > ROOTSYS=/usr/local/ROOT/26.00-g34
> > [testuser_at_Ezhik-HDX18-i386 example]$ env | grep FLU
> > FLUTIL=/home/testuser/fluka/2008.3c/flutil
> > FLUPRO=/home/testuser/fluka/2008.3c
> >
> > *** Running rfluka ***
> >
> > [testuser_at_Ezhik-HDX18-i386 example]$ $FLUTIL/rfluka -e rootfluka -N0 -M1
> > root.inp
> > $TARGET_MACHINE = Linux
> > $FLUPRO = /home/testuser/fluka/2008.3c
> > /home/testuser/fluka/2008.3c/libec_thihecufealw_10t.pemf
> >
> > Initial seed already existing
> > Running fluka in /home/testuser/fluka/example/fluka_28581
> >
> > ======================= Running FLUKA for cycle # 1
> =======================
> > [testuser_at_Ezhik-HDX18-i386 example]$
> >
> > *** End of the session ***
> >
> > So neither way produces the output expected. I'm using FLUKA 2008.3c.0
> > and ROOT 5.26.00 on Fedora 12 i686 (32-bit) installed on Sun VirtualBox
> > 3.1.4 r57640 The standard FLUKA executable runs with no problems on this
> > machine.
> >
> > What's wrong? How can I make the rootfluka example running?
> >
> > Regards,
> >
> > Vassili
> >
> >
>
> **************************
> Marco Calviani
> CERN-EN/STI
> CH-1211 Geneva 23
> Switzerland
> tel. +41 22 7675582
> gsm. +41 76 4872687
> fax +41 22 7668213
> **************************
>
>
>

Received on Tue Feb 23 2010 - 09:55:40 CET

This archive was generated by hypermail 2.2.0 : Tue Feb 23 2010 - 09:55:44 CET