Recent MacOS binary kits are broken, missing libraries

At least the three most recent MacOS binary kits are broken, do not work because of missing libraries (libzstd and others). There is two reports of this problem in this forum, both auto-closed, without clear resolution, without clear solution.

Suggested solution is to install missing libraries using brew, but those are installed in /opt/homebrew while ROOT is looking for them in /opt/local.

So clearly ROOT was NOT built against homebrew libraries and there is no assurance that homebrew libraries are compatible and will work without mysterious crashes.

Please:
a) add the missing libraries to the ROOT binary kit, or
b) add instruction on installing them to the “Dependancies” page

Thanks in advance.

1 Like

I did this:

$ brew install libzstd ### installs them in /opt/homebrew/lib
$ sudo /bin/bash
# mkdir /opt/local
# chown localuser /opt/local
$ mkdir /opt/local/lib
$ ln -s /opt/homebrew/lib/libzstd.1.dylib /opt/local/lib/
$ ln -s /opt/homebrew/lib/libzstd.a /opt/local/lib/
$ ln -s /opt/homebrew/lib/libzstd.dylib /opt/local/lib/
$ root # works now

K.O.

1 Like

Maybe @couet can help you with MacOS

I do not use homebrew myself. But it seems you found the solution . Right ?

I do not think I have a solution, the MacOS ROOT binary kit was build against an unknown version of libraries in /opt/local on an unknown computer somewhere. I substituted these unknown libraries with homebrew libraries (I could have tried the “macports” libraries instead) and ROOT at least starts. I will probably run into missing libxml next. (we are moving the DAQ system of the TRIUMF DRAGON experiment to a new Mac).

So, how do I contact the people who build the MacOS binary kit to find out what versions of what libraries they have in their /opt/local?

Am I right to assume these people read this forum?

K.O.

You problem seems similar to this one Another compile issue on Sequoia - #20 by couet

Thanks. That seems to be a report on failure to build ROOT from source, so not quite the same thing. BTW, “your problem” is not really my problem, it is ROOT project’s problem that project’s MacOS binary kits do not work on vanilla MacOS and installation of unknown support libraries is required. Ultimately, I will build ROOT from sources and if that fails, yes, you will hear form me in that other thread. K.O.