Re: TPythia6 and pythia required library

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jan 17 2000 - 12:46:23 MET


Hi Jean-Pierre,
You can take the following tar file:
    ftp://root.cern.ch/root/pythia6.tar.gz

This file contains the following script to build the shared lib
for Pythia6 under Linux.

Rene Brun

# /bin/sh
g77 -c pythia6131.f
g77 -c  -fno-second-underscore tpythia6_called_from_cc.F
g77 -c  -fno-second-underscore pythia6_common_block_address.F
echo 'void MAIN__() {}' >main.c
gcc -c main.c
gcc -c pythia6_address.c
g77 -shared -Wl,-soname,libPythia6.so -o libPythia6.so \
 main.o pythia6_address.o tpythia6_called_from_cc.o \
 pythia6_common_block_address.o pythia6131.o


Jean-Pierre Ernenwein wrote:
> 
> Hello rooters,
> 
> I would like to use the TPythia6 class, I need a pythia library to do
> the following commands :
> 
> root [0] gSystem.Load("libEG")
> (int)0
> root [1] gSystem.Load("$PYTHIA/libPythia")  <<<<---------- my problem
> (int)0
> root [2] gSystem.Load("libEGPythia6")
> 
> but I can't find or build a suitable library for pythia
> (I have problems with invalid headers, unsatisfied symbols).
> I have the fortran source, but I don't know how to
> create the library for Linux.
> 
> Perhaps someone has a  Makefile ?
> 
> thanks,
> 
> 
> 
>            Jean-Pierre Ernenwein, GRPHE
>            Universite de Haute Alsace



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:17 MET