root [0] .x /Applications/root_v6.23.01/tutorials/hist/h1draw.C
dyld: lazy symbol binding failed: Symbol not found: _ZN5TROOT14RegisterModuleEPKcPS1_S2_S1_S1_PFvvERKNSt3__16vectorINS5_4pairINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEiEENSB_ISE_EEEES2
Referenced from: /usr/local/lib/libGX11.so
Expected in: /Users/klein/root_install_1/lib/libCore.so
dyld: Symbol not found: _ZN5TROOT14RegisterModuleEPKcPS1_S2_S1_S1_PFvvERKNSt3__16vectorINS5_4pairINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEiEENSB_ISE_EEEES2
Referenced from: /usr/local/lib/libGX11.so
Expected in: /Users/klein/root_install_1/lib/libCore.so
I get the same results with different examples. I spent quite some time trying to find this on different discussions, but could not find any resolution.
This likely means that you have a mix of versions. Looks like your root (e.g. from /Applications/root_v6.23.01/) and the libraries it tries to use (from /usr/local/lib/) come from incompatible installs.
If you want to keep multiple ROOT versions we recommend to not install them into /usr/local, but into version-specific directories e.g. /opt/root-6.22 or even ~/root-6.22, and then run source ~/root-6.22/bin/thisroot.sh to select which version you want to use.
Hi Axel
After removing all the different versions still hanging around, things work now.
I then reinstalled, and voila things are working.
Thank you very much, andi