Running ROOT 6.22.02 on Mac 10.14


_ROOT Version:_6.22.02
Platform: Mac 10.14.6
Compiler: clang11

I have compiled root from scratch, and when I try running the example h1draw.C from the tutorial I get the following error and root crashes:


| Welcome to ROOT 6.22/02 https://root.cern |
| © 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for macosx64 on Nov 23 2020, 13:05:00 |
| From tags/v6-22-02@v6-22-02 |

Try ‘.help’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/’.q’

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.

Andi

I just noticed that I posted a screenshot with 6.23, which I also tried.
Here is the 6.22.02 screen shot: ------------------------------------------------------------------
| Welcome to ROOT 6.22/02 https://root.cern |
| © 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for macosx64 on Nov 23 2020, 13:05:00 |
| From tags/v6-22-02@v6-22-02 |

Try ‘.help’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/’.q’

root [0]
root [0] .x /Applications/root_v6.23.01/tutorials/hist/hsum.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

Hi @andi_klein, which CMake flags did you use for building ROOT? (cc: @Axel )
Are you using Cocoa? (Sorry, I am not aware what is libGX11.so)

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.

Thanks
I will try this.

No I had cocoa off.
Thanks I look into this .
andi

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

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.