GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Preparation for next week
Preparation for next week [message #5643] Wed, 16 January 2008 16:01 Go to next message
Jens Sören Lange is currently offline  Jens Sören Lange
Messages: 193
Registered: June 2005
first-grade participant
From: *physik.uni-giessen.de
Hi all,

as just discussed on the meeting, this is the preparation for next week's workshop (in particular for Klaus Goetzen's tutorial on Monday afternoon).

1.) install the "new" external packages of 23.11.2007
(if you haven't done so yet)

http://cbmroot.gsi.de/installation/External%20Packages.htm

2.) svn co https://subversion.gsi.de/fairroot/pandaroot

on FRIDAY AFTERNOON

> mkdir build
> cd build
> cmake ../pandaroot
> . config.sh
> make install

3.) download the binaries of root 5.14

http://root.cern.ch/root/Version514.html

4.) try to compile EvtGen against root 5.14
(please don't try root 5.17 from the external packages,
it will not work)

see
http://panda-wiki.gsi.de/cgi-bin/view/Computing/EvtGen

cd pandaroot/pgenerators/EvtGen
. configure

Enter Name of c++ compiler (type "gcc", or your c++ compiler name)
Enter name of fortran compiler (type "g77", or your fortran compiler name)
Enter any other options that you would like to use in compilation (just press Enter)
Please enter any others that you would like to use (just press Enter)

make
make bin
cd test
../testEvtGen test1 1000

see you all next week

Soeren
Re: Preparation for next week [message #5646 is a reply to message #5643] Wed, 16 January 2008 17:00 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

I found the problem with EvtGen and root newer than 5.16, in ROOT they redesign the libraries and split some functionality in different libraries, any way to compile EvtGen with the new ROOT just follow steps in the wiki and when you call configure:


Enter Name of c++ compiler (type "gcc", or your c++ compiler name)

Enter name of fortran compiler (type "g77", or your fortran compiler name)

Enter any other options that you would like to use in compilation (just press Enter)

Please enter any others that you would like to use : -lRIO -lSQL -lNet

and then continue as written in the wiki.


P.S: This works with g77, with gfortran (suse 10.3, Fedora 8 ) I still have some problem but with the gfortran and cernlib.


regards

Mohammad

[Updated on: Wed, 16 January 2008 17:01]

Report message to a moderator

Re: Preparation for next week [message #5658 is a reply to message #5643] Thu, 17 January 2008 16:11 Go to previous messageGo to next message
Klaus Götzen is currently offline  Klaus Götzen
Messages: 293
Registered: June 2006
Location: GSI
first-grade participant
From: *ikf.physik.uni-frankfurt.de
Hi all!

In order to compile and run EvtGen you also need the appropriate cernlib which is located at GSI in

/misc/cbmsoft/Debian3.1/old/cern/cernlib/2005

So you will need a local copy of that one as well on your machine.

Cheers,
Klaus
Re: Preparation for next week [message #5659 is a reply to message #5646] Thu, 17 January 2008 16:35 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
Yes,
I have tried this and it works.
The only problem is that it does not work with the "old" root, so maybe it is better to not change the default options of the configure script in the repository, and do it each time by hands.

I will change the EvtGen wiki page according to this.

Re: Preparation for next week [message #5662 is a reply to message #5643] Fri, 18 January 2008 14:03 Go to previous messageGo to next message
Klaus Götzen is currently offline  Klaus Götzen
Messages: 293
Registered: June 2006
Location: GSI
first-grade participant
From: *ikf.physik.uni-frankfurt.de
Hi all!

I prepared a WIKI page which contains all the necessary information for that Fast Simulation and Analysis tutorial on monday afternoon, which can be found here:

http://panda-wiki.gsi.de/cgi-bin/view/Computing/FastSimTutKVI

You can find there the things we'd like to learn (some task we'll do together), some help items and hints/solutions for the tasks.

Just be aware (I'm also going to mention that in the tutorial) that you can look up necessary information independent of my current slide in the presentation to work on the tasks.

There's also a 'What needs to be prepared' section, which might already be of interest (it's basically what Soeren posted in this thread first...)

Have a nice weekend and see you in Groningen,
Klaus
Re: Preparation for next week [message #5665 is a reply to message #5646] Sat, 19 January 2008 17:11 Go to previous messageGo to next message
Johan Messchendorp is currently offline  Johan Messchendorp
Messages: 693
Registered: April 2007
Location: University of Groningen
first-grade participant

From: *xs4all.nl
Dear all,

works fine at one of the KVI machines as well (Fedora core-3, gcc3.4, f77). I will make a machine available for the workshop participants with the proper software installed for the tutorials. Just in case someone needs it.

Johan.


Johan Messchendorp
University of Groningen/KVI
Zernikelaan 25
NL-9747 AA Groningen
The Netherlands
tel. +31-503633558
fax +31-503634003
icon4.gif  Re: Preparation for next week [message #5666 is a reply to message #5643] Sat, 19 January 2008 18:00 Go to previous messageGo to next message
Jens Sören Lange is currently offline  Jens Sören Lange
Messages: 193
Registered: June 2005
first-grade participant
From: *web.vodafone.de
Short Addendum:

Mohammad said on Friday on the phone that he also found a (temporary) solution for the newer distributions which come with gfortran instead of g77 (e.g. suse 10.3 - i.e. for all the people like me who thought that it is a great idea to use christmas to install a new version on all your computers ...). In other words: you should (a) _not_ try to go back to an older platform or (b) _not_ try to go back from gfortran to g77.
Re: Preparation for next week [message #5667 is a reply to message #5666] Sat, 19 January 2008 22:14 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *dip.t-dialin.net
Hi,

As Soeren wrote, one can use EvtGen with gfortran, for that one has to have cernlib compiled with gfortran, Unfortunately gfortran 4.1 (FedoraCore 8, SL4) is not binary compatible with gfortran 4.2 (Suse 10.3, FC9 ), which means we have to recompile cernlib at least for gfortran 4.2. Any way, I did it already and I think now we can run EvtGen on all systems with cernlib 2006:

1- gfortran 4.1: (SL4, FC8 )
you can download the binary distribution of cernlib directly from cern:

http://cernlib.web.cern.ch/cernlib/version.html

2. gfortran 4.2 (FC9, suse 10.3)
you can download it from the fairroot web page:

http://fairroot.gsi.de/download/cernlib.gfortran42.tar.gz


after unpacking the cernlib you should follow the wiki on how to recompile EvtGen, when configuring it :



Enter Name of c++ compiler (type "gcc", or your c++ compiler name)
Enter name of fortran compiler (type "g77", or your fortran compiler name)
Enter any other options that you would like to use in compilation (just press Enter)
Please enter any others that you would like to use : -lRIO -lSQL -lNet -lgfortran


after this and before compiling, edit the file config.mk and remove -lg2c from the line:

EVTSYSLIB=-lg2c -lnsl

and then continue as written in the wiki.

I will try to write a howto compile cernlib with gfortran in the wiki.

regards

Mohammad
Re: Preparation for next week [message #5668 is a reply to message #5667] Sat, 19 January 2008 23:02 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *dip.t-dialin.net
If we do not need them at all,
I think we could even remove the g2c from the EvtGen configure in the repository.
Re: Preparation for next week [message #5669 is a reply to message #5643] Sat, 19 January 2008 23:13 Go to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *dip.t-dialin.net
Hi,

We need it for g77? but we can modify the configure to check for g77 and gfortran and to choose the proper libraries!

Mohammad




Previous Topic: Happy new year and best wishes for 2008!!!
Next Topic: Add folder to cmake
Goto Forum:
  


Current Time: Tue Apr 30 07:04:45 CEST 2024

Total time taken to generate the page: 0.00971 seconds