install pythia8

Asked by abulikim2011 on 2017-10-26

Hi,
I want to install pythia8 on MG5_aMC_v2_6_0. after completed install , on screen appear install successfully, but i open the /home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8/pythia8_install.log file , in this file appear many error massage like :
Compile PYTHIA8 examples
g++ main01.cc -o main01 -I/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//include -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/zlib/include -L/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/zlib/lib -Wl,-rpath,/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/zlib/lib -lz -L/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib -Wl,-rpath,/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib -lpythia8 -ldl
/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib/libpythia8.a(Streams.o): In function `Pythia8::gzstreambuf::open(char const*, int)':
Streams.cc:(.text+0x10b): undefined reference to `gzopen'
/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib/libpythia8.a(Streams.o): In function `Pythia8::gzstreambuf::close()':
Streams.cc:(.text+0x1a3): undefined reference to `gzclose'
/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib/libpythia8.a(Streams.o): In function `Pythia8::gzstreambuf::underflow()':
Streams.cc:(.text+0x2e2): undefined reference to `gzread'
/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib/libpythia8.a(Streams.o): In function `Pythia8::gzstreambuf::flush_buffer()':
Streams.cc:(.text+0x3a6): undefined reference to `gzwrite'
collect2: error: ld returned 1 exit status
Makefile:61: recipe for target 'main01' failed
make: *** [main01] Error 1
g++ main02.cc -o main02 -I/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//include -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/zlib/include -L/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/zlib/lib -Wl,-rpath,/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/zlib/lib -lz -L/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib -Wl,-rpath,/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib -lpythia8 -ldl
/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib/libpythia8.a(Streams.o): In function `Pythia8::gzstreambuf::open(char const*, int)':
Streams.cc:(.text+0x10b): undefined reference to `gzopen'
/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib/libpythia8.a(Streams.o): In function `Pythia8::gzstreambuf::close()':
Streams.cc:(.text+0x1a3): undefined reference to `gzclose'
/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib/libpythia8.a(Streams.o): In function `Pythia8::gzstreambuf::underflow()':
Streams.cc:(.text+0x2e2): undefined reference to `gzread'
/home/ablikim/tools/MG5_aMC_v2_6_0/HEPTools/pythia8//lib/libpythia8.a(Streams.o): In function `Pythia8::gzstreambuf::flush_buffer()':
Streams.cc:(.text+0x3a6): undefined reference to `gzwrite'
collect2: error: ld returned 1 exit status
Makefile:61: recipe for target 'main02' failed
make: *** [main02] Error 1
....
....
....
what is happen here ? i am confused .
thanks.
Best

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Valentin Hirschi Edit question
Last query:
2017-10-26
Last reply:
2017-10-26

Yes, this is just because Pythia8 also compiles all its example drivers
(mainXX) and the makefile typically tries to skip certain ones of them
according to the availability of their dependences, but it's not perfect
and depending on your environment some of these compilations might fail.
However, note that these compilations happen after Pythia itself (i.e. the
library libpythia8.a) is successfully compiled and functional. So this
error is irrelevant and this is why you don't see any issue being reported
on MG5aMC end.
If you are keen on having these examples compiling successfully, then you
can try to install zlib with 'install zlib' with MG5aMC, before trying to
install pythia8 again with "install pythia8".

On Thu, Oct 26, 2017 at 8:28 AM, Olivier Mattelaer <
<email address hidden>> wrote:

> Question #659986 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/659986
>
> Assignee: None => Valentin Hirschi
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>

--
Valentin

Can you help with this problem?

Provide an answer of your own, or ask abulikim2011 for more information if necessary.

To post a message you must log in.