Recently I wanted to install pythia8 in my MG5 but got the following problem:
=============================================================================
Rico-iMacs-iMac:~ rico-imac$ tail -f /Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/pythia8/pythia8_install.log
g++ src/FragmentationSystems.cc -o tmp/FragmentationSystems.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/GammaKinematics.cc -o tmp/GammaKinematics.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/HadronLevel.cc -o tmp/HadronLevel.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/HadronScatter.cc -o tmp/HadronScatter.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/HardDiffraction.cc -o tmp/HardDiffraction.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/HelicityBasics.cc -o tmp/HelicityBasics.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/HelicityMatrixElements.cc -o tmp/HelicityMatrixElements.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/HiddenValleyFragmentation.cc -o tmp/HiddenValleyFragmentation.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/History.cc -o tmp/History.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/Info.cc -o tmp/Info.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/JunctionSplitting.cc -o tmp/JunctionSplitting.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/LHEF3.cc -o tmp/LHEF3.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/LesHouches.cc -o tmp/LesHouches.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/Merging.cc -o tmp/Merging.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/MergingHooks.cc -o tmp/MergingHooks.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/MiniStringFragmentation.cc -o tmp/MiniStringFragmentation.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/MultipartonInteractions.cc -o tmp/MultipartonInteractions.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/ParticleData.cc -o tmp/ParticleData.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/ParticleDecays.cc -o tmp/ParticleDecays.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/PartonDistributions.cc -o tmp/PartonDistributions.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/PartonLevel.cc -o tmp/PartonLevel.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/PartonSystems.cc -o tmp/PartonSystems.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/PhaseSpace.cc -o tmp/PhaseSpace.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/ProcessContainer.cc -o tmp/ProcessContainer.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/ProcessLevel.cc -o tmp/ProcessLevel.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/Pythia.cc -o tmp/Pythia.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include -DXMLDIR=\"/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/pythia8//share/Pythia8/xmldoc\"
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/PythiaStdlib.cc -o tmp/PythiaStdlib.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/RHadrons.cc -o tmp/RHadrons.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/ResonanceDecays.cc -o tmp/ResonanceDecays.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/ResonanceWidths.cc -o tmp/ResonanceWidths.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/ResonanceWidthsDM.cc -o tmp/ResonanceWidthsDM.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SLHAinterface.cc -o tmp/SLHAinterface.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/Settings.cc -o tmp/Settings.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaCompositeness.cc -o tmp/SigmaCompositeness.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaDM.cc -o tmp/SigmaDM.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaEW.cc -o tmp/SigmaEW.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaExtraDim.cc -o tmp/SigmaExtraDim.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaGeneric.cc -o tmp/SigmaGeneric.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaHiggs.cc -o tmp/SigmaHiggs.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaLeftRightSym.cc -o tmp/SigmaLeftRightSym.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaLeptoquark.cc -o tmp/SigmaLeptoquark.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaNewGaugeBosons.cc -o tmp/SigmaNewGaugeBosons.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaOnia.cc -o tmp/SigmaOnia.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaProcess.cc -o tmp/SigmaProcess.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaQCD.cc -o tmp/SigmaQCD.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaSUSY.cc -o tmp/SigmaSUSY.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SigmaTotal.cc -o tmp/SigmaTotal.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SpaceShower.cc -o tmp/SpaceShower.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/StandardModel.cc -o tmp/StandardModel.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/Streams.cc -o tmp/Streams.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/StringFragmentation.cc -o tmp/StringFragmentation.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/StringLength.cc -o tmp/StringLength.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SusyCouplings.cc -o tmp/SusyCouplings.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SusyLesHouches.cc -o tmp/SusyLesHouches.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SusyResonanceWidths.cc -o tmp/SusyResonanceWidths.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/SusyWidthFunctions.cc -o tmp/SusyWidthFunctions.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/TauDecays.cc -o tmp/TauDecays.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/TimeShower.cc -o tmp/TimeShower.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/UserHooks.cc -o tmp/UserHooks.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ src/WeakShowerMEs.cc -o tmp/WeakShowerMEs.o -c -MD -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -DGZIPSUPPORT -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/zlib/include
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
ar cru lib/libpythia8.a tmp/Analysis.o tmp/Basics.o tmp/BeamParticle.o tmp/BeamRemnants.o tmp/BeamShape.o tmp/BoseEinstein.o tmp/ColourReconnection.o tmp/ColourTracing.o tmp/Event.o tmp/FJcore.o tmp/FragmentationFlavZpT.o tmp/FragmentationSystems.o tmp/GammaKinematics.o tmp/HadronLevel.o tmp/HadronScatter.o tmp/HardDiffraction.o tmp/HelicityBasics.o tmp/HelicityMatrixElements.o tmp/HiddenValleyFragmentation.o tmp/History.o tmp/Info.o tmp/JunctionSplitting.o tmp/LHEF3.o tmp/LesHouches.o tmp/Merging.o tmp/MergingHooks.o tmp/MiniStringFragmentation.o tmp/MultipartonInteractions.o tmp/ParticleData.o tmp/ParticleDecays.o tmp/PartonDistributions.o tmp/PartonLevel.o tmp/PartonSystems.o tmp/PhaseSpace.o tmp/ProcessContainer.o tmp/ProcessLevel.o tmp/Pythia.o tmp/PythiaStdlib.o tmp/RHadrons.o tmp/ResonanceDecays.o tmp/ResonanceWidths.o tmp/ResonanceWidthsDM.o tmp/SLHAinterface.o tmp/Settings.o tmp/SigmaCompositeness.o tmp/SigmaDM.o tmp/SigmaEW.o tmp/SigmaExtraDim.o tmp/SigmaGeneric.o tmp/SigmaHiggs.o tmp/SigmaLeftRightSym.o tmp/SigmaLeptoquark.o tmp/SigmaNewGaugeBosons.o tmp/SigmaOnia.o tmp/SigmaProcess.o tmp/SigmaQCD.o tmp/SigmaSUSY.o tmp/SigmaTotal.o tmp/SpaceShower.o tmp/StandardModel.o tmp/Streams.o tmp/StringFragmentation.o tmp/StringLength.o tmp/SusyCouplings.o tmp/SusyLesHouches.o tmp/SusyResonanceWidths.o tmp/SusyWidthFunctions.o tmp/TauDecays.o tmp/TimeShower.o tmp/UserHooks.o tmp/WeakShowerMEs.o
g++ -x c++ include/Pythia8Plugins/LHAPDF6.h -o tmp/LHAPDF6Plugin.o -c -MD -w -I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/lhapdf6/include\
-I/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/boost/include -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK
i686-apple-darwin11-llvm-g++-4.2: -ldl: linker input file unused because linking not done
i686-apple-darwin11-llvm-g++-4.2: -lstdc++: linker input file unused because linking not done
g++ tmp/LHAPDF6Plugin.o lib/libpythia8.a -o lib/libpythia8lhapdf6.so -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -shared -Wl,-soname,libpythia8lhapdf6.so\
-L/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/lhapdf6/lib -Wl,-rpath,/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/lhapdf6/lib -lLHAPDF
ld: unknown option: -soname
collect2: ld returned 1 exit status
make: *** [lib/libpythia8lhapdf6.so] Error 1
g++ tmp/LHAPDF6Plugin.o lib/libpythia8.a -o lib/libpythia8lhapdf6.so -Iinclude -ldl -fPIC -lstdc++ -DHEPMC2HACK -shared -Wl,-soname,libpythia8lhapdf6.so\
-L/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/lhapdf6/lib -Wl,-rpath,/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/lhapdf6/lib -lLHAPDF
ld: unknown option: -soname
collect2: ld returned 1 exit status
make: *** [lib/libpythia8lhapdf6.so] Error 1
Compile PYTHIA8 examples
/Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/HEPToolsInstallers/installPYTHIA8.sh: line 51: cd: /Users/rico-imac/Desktop/Program/MG5_aMC_v2_5_4/HEPTools/pythia8//share/Pythia8/examples: No such file or directory
ls: main*.cc: No such file or directory
Finished PYTHIA8 installation
=============================================================================
My computer is an iMac and its version is 10.7.5
Very thank you for teaching me how to solve this problem.