I sent the command that you suggest:
after configure the terminal says:
WARNING: Disabling ROOT - header TROOT.h missing.
WARNING: Disabling ROOT - library Core missing.
WARNING: Disabling ROOT - library Gpad missing.
WARNING: Disabling ROOT - library Graf missing.
WARNING: Disabling ROOT - library Hist missing.
WARNING: Disabling ROOT - library MathCore missing.
WARNING: Disabling ROOT - library Matrix missing.
WARNING: Disabling ROOT - library Thread missing.
WARNING: Disabling ROOT - library Tree missing.
now the problem relative to
WARNING: Disabling ROOT - binary root-config missing
disappear.
What do you get from:
source /full/path/to/your/ROOT/bin/thisroot.sh
root-config --prefix
root-config --bindir
So try (assuming that “/Users/Michele/root/sw/osx_x86-64/ROOT/v6-14-04-1/bin/root-config” exists):
./configure --enable-shared --with-root=/Users/Michele/root/sw/osx_x86-64/ROOT/v6-14-04-1
after
./configure --enable-shared --with-root=/Users/Michele/root/sw/osx_x86-64/ROOT/v6-14-04-1
the therminal says:
Running PYTHIA configuration script. Now is Lun 24 Feb 2020 20:05:31 CET
WARNING: setting default C++ compiler CXX=g++ (CXX environment variable not set)
PYTHIA Configuration Summary |
Architecture = DARWIN |
C++ Compiler CXX = g++ |
C++ Flags CXX_COMMON = -O2 -pedantic -W -Wall -Wshadow -fPIC |
C++ Flags (.so) CXX_SHARED = -dynamiclib |
Further options = --enable-shared |
The following optional external packages will be used:
- ROOT (in /Users/Michele/root/sw/osx_x86-64/ROOT/v6-14-04-1/lib)
so I launch the command make.
Pythia now is correctly installed but when I do:
make main91
the therminal says:
g++ main91.cc -o main91 -w -I -I…/include -O2 -pedantic -W -Wall -Wshadow -fPIC -L…/lib -Wl,-rpath,…/lib -lpythia8 -ldl \
root-config --cflags
\
-Wl,-rpath, /Users/Michele/root/sw/osx_x86-64/ROOT/v6-14-04-1/binroot-config --glibs
bash: /Users/Michele/root/sw/osx_x86-64/ROOT/v6-14-04-1/binroot-config: No such file or directory
main91.cc:15:10: fatal error: ‘Pythia8/Pythia.h’ file not found
#include “Pythia8/Pythia.h”
^~~~~~~~~~~~~~~~~~
1 error generated.
Basically this is the problem that I encountered from yesterday
Fix the “examples/Makefile”:
main91: $$@.cc $(PREFIX_LIB)/libpythia8.a
ifeq ($(ROOT_USE),true)
$(CXX) $< -o $@ -w $(CXX_COMMON) \
`$(ROOT_BIN)/root-config --cflags` \
-Wl,-rpath,`$(ROOT_BIN)/root-config --libdir` `$(ROOT_BIN)/root-config --glibs`
else
@echo "Error: $@ requires ROOT"
endif
I do it, but the error remain the same
Make sure that you modified the “examples/Makefile” EXACTLY like shown in my previous post above.
Sorry, now I change it correctly. Now the .exe is produced but when
./main91
the terminal says
PYTHIA Error: settings file /xmldoc/Index.xml not found
PYTHIA Abort from Pythia::Pythia: settings unavailable
PYTHIA Abort from Pythia::init: constructor initialization failed
PYTHIA Error in Settings::flag: unknown key Stat:showProcessLevel
Info in TCanvas::MakeDefCanvas: created default TCanvas with name c1
and the Canvas is blank
You can try to:
export PYTHIA8DATA=/full/path/to/your/share/Pythia8/xmldoc
I launch the command while I was in PYTHIA directory, correct?
In this condition I launch your command, ./configure once again, make once again.
The erro for main91 is the same
Why don’t you read the Pythia 8 “README” file?
thank you very much for your help.