Using pythia8 in ROOT6 problem

Hi,
When I use pythia8 in root6, I find a problem:

Lis-MacBook-Pro:root Li$ root -l root [0] gSystem->Load("$PYTHIA8/lib/libpythia8") (int) 0 root [1] gSystem->Load("libEG") (int) 0 root [2] gSystem->Load("libEGPythia8") cling::DynamicLibraryManager::loadLibrary(): dlopen(/Users/Li/tools/root/lib/libEGPythia8.so, 9): Library not loaded: libpythia8.dylib Referenced from: /Users/Li/tools/root/lib/libEGPythia8.so Reason: image not found (int) -1 root [3]

I am sure I installed pythia 8 well, and when I configure root, I use:

./configure --all --enable-pythia8 --with-pythia8-incdir=/Users/Li/tools/packages/pythia8/include --with-pythia8-libdir=/Users/Li/tools/packages/pythia8/lib

And root have find pythia8. And in my ROOT/lib, there is a libEGPythia8.so

And my .bash_profile:

[code]export ROOTSYS=/Users/Li/tools/root
export PYTHIA8=/Users/Li/tools/packages/pythia8
export PYTHIA8DATA=$PYTHIA8/share/Pythia8/xmldoc
export PATH=$PATH:$ROOTSYS/bin:$PYTHIA8:$PYTHIA8DATA
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$ROOTSYS/lib

PYTHONPATH="/Users/Li/tools/root/lib:$PYTHONPATH"
export PYTHONPATH
[/code]

I can’t find the reason of the problem, does anyone know it?

By the way, I use mac, and I use brew to install python and pip.

I accidentally find the result here:

mac is hard…