I can't install pythia8 in any version
dear author,
Hello, I met an error. Help me please.
I need pythia to simulate, but when I run 'install pythia8' I met an error:
make[1]: *** [Makefile:370: CompareGenEvent.lo] Error 1
make[1]: Leaving directory '/tmp/tmp7adlhr
make: *** [Makefile:294: install-recursive] Error 1
Finished HEPMC installation
> Now aborting installation of tool 'pythia8'.
Command "install pythia8 " interrupted in sub-command:
"install pythia8" with error:
InvalidCmd : Installation of pythia8 failed.
I am looking for your anwser.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
So your error seems to be the hepmc library.
Do you have the log file of the hepmc installation?
Cheers,
Olivier
Revision history for this message
|
#2 |
Set environment variables
Unpack HEPMC
hepmc2.06.09/
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.06.09/HepMC/
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.06.09/NEWS
hepmc2.06.09/README
hepmc2.
hepmc2.
hepmc2.06.09/cmake/
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.06.09/doc/
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.06.09/fio/
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.06.09/src/
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.06.09/test/
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
hepmc2.
Enter HEPMC directory
Copying the hacked files 'WeightContaine
The autotools configure script already present; there is no need to run autoreconf manually.
Configure HEPMC
./configure --prefix=
checking build system type... x86_64-
checking host system type... x86_64-
checking target system type... x86_64-
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking whether we are using the GNU Fortran 77 compiler... (cached) yes
checking whether gfortran accepts -g... (cached) yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... no
checking if gfortran supports -c -o file.o... yes
checking if gfortran supports -c -o file.o... (cached) yes
checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for stdint.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for ptrdiff_t... yes
checking for ANSI C header files... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating HepMC/Makefile
config.status: creating doc/Makefile
config.status: creating examples/Makefile
config.status: creating examples/
config.status: creating examples/
config.status: creating fio/Makefile
config.status: creating src/Makefile
config.status: creating src/Units.cc
config.status: creating test/Makefile
config.status: creating test/testHepMC.cc
config.status: creating test/testMass.cc
config.status: creating test/testHepMCI
config.status: creating test/testMultip
config.status: creating test/testStream
config.status: creating examples/
config.status: creating examples/
config.status: creating examples/
config.status: creating examples/
config.status: creating examples/
config.status: creating test/testHepMC.sh
config.status: creating test/testFlow.sh
config.status: creating test/testMass.sh
config.status: creating test/testHepMCI
config.status: creating test/testPolari
config.status: creating test/testPrintB
config.status: creating test/testStream
config.status: creating HepMC/defs.h
config.status: executing depfiles commands
config.status: executing libtool commands
Compile HEPMC
Making all in HepMC
make[1]: Entering directory '/tmp/tmpgzwv8g
make all-am
make[2]: Entering directory '/tmp/tmpgzwv8g
make[2]: Leaving directory '/tmp/tmpgzwv8g
make[1]: Leaving directory '/tmp/tmpgzwv8g
Making all in src
make[1]: Entering directory '/tmp/tmpgzwv8g
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../HepMC -I.. -I.. -ansi -pedantic -Wall -g -O2 -MT CompareGenEvent.lo -MD -MP -MF .deps/CompareGe
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../HepMC -I.. -I.. -ansi -pedantic -Wall -g -O2 -MT CompareGenEvent.lo -MD -MP -MF .deps/CompareGe
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
make[1]: *** [Makefile:370: CompareGenEvent.lo] Error 1
make[1]: Leaving directory '/tmp/tmpgzwv8g
make: *** [Makefile:294: all-recursive] Error 1
Install HEPMC
Making install in HepMC
make[1]: Entering directory '/tmp/tmpgzwv8g
make[2]: Entering directory '/tmp/tmpgzwv8g
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/share06/
/usr/bin/install -c -m 644 CompareGenEvent.h Flow.h GenEvent.h GenParticle.h GenVertex.h GenCrossSection.h GenRanges.h HeavyIon.h HEPEVT_Wrapper.h HerwigWrapper.h IO_AsciiParticles.h IO_BaseClass.h IO_Exception.h IO_GenEvent.h IO_HEPEVT.h IO_HERWIG.h IteratorRange.h PdfInfo.h Polarization.h PythiaWrapper6_4.h PythiaWrapper6_
make[2]: Leaving directory '/tmp/tmpgzwv8g
make[1]: Leaving directory '/tmp/tmpgzwv8g
Making install in src
make[1]: Entering directory '/tmp/tmpgzwv8g
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../HepMC -I.. -I.. -ansi -pedantic -Wall -g -O2 -MT CompareGenEvent.lo -MD -MP -MF .deps/CompareGe
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../HepMC -I.. -I.. -ansi -pedantic -Wall -g -O2 -MT CompareGenEvent.lo -MD -MP -MF .deps/CompareGe
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
../HepMC/
public std::iterator<
../HepMC/
In file included from /usr/include/
/usr/include/
typedef __PTRDIFF_TYPE__ ptrdiff_t;
/usr/include/
In file included from ../HepMC/
../HepMC/
public std::iterator<
make[1]: *** [Makefile:370: CompareGenEvent.lo] Error 1
make[1]: Leaving directory '/tmp/tmpgzwv8g
make: *** [Makefile:294: install-recursive] Error 1
Finished HEPMC installation
ln: failed to create symbolic link 'lib': File exists
Revision history for this message
|
#3 |
So this sounds similar to this error found online.
https:/
Looks like this needs to be fixed within hepmc (and I m not an author of that package)
Will see if I can find a more recent version of hepmc compatible with pythia8 and our framework that fixes that issue.
Maybe one quicker solution is to patch the code according to the above link and see if that fix your issue.
Cheers,
Olivier
Revision history for this message
|
#4 |
Sorry, I don't know how to fix it yet. I hope that you can solve this bug.
Thanks for your help!
Can you help with this problem?
Provide an answer of your own, or ask Xiao Wang for more information if necessary.