Installation via Brew on High Sierra 10.13.14

Dear experts,
I have trouble installing ROOT from brew under High Sierra (10.13.14, XCode 9.3).
Apparently, ROOT from Brew does not recognise (or like) the Mac OSX python installation (/usr/bin/python) and wants to install python via Brew itself.
This, however, leads to the crash I keep observing (regardless of whether trying to install ROOT or python via brew). Brew fails to link the installation due to permission issues. I already contacted the CERN Mac Community. The experts there pointed me here and mentioned increased security settings of Mac OSX that were deployed with High Sierra, prohibiting access to certain system-vital directories.

Is it possible to install ROOT on High Sierra using Brew at all (or is it impossible due to the updated security restrictions)? If so, how? Or do I need to install it from source?

The exact prompt I receive when trying to install python via Brew (like ROOT attempts it to do) is given below.

Any feedback and help is very much appreciated, at my institute I am not the only one facing this problem.

Thanks!

Cheers

Oliver

brew install python
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
angular-cli                closure-compiler           faas-cli
aws-sdk-cpp                exomizer                   flatbuffers

==> Downloading https://homebrew.bintray.com/bottles/python-3.6.5.high_sierra.bo
==> Downloading from https://akamai.bintray.com/6e/6ec7a1efb260f95627a0f76689090
######################################################################## 100.0%
==> Pouring python-3.6.5.high_sierra.bottle.tar.gz
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

Installing ROOT with brew is not officially supported. That does not mean that it’s impossible, but since ROOT must be binary compatible with the brew compiler and Python, I am not surprised that brew wants to use its own Python. PyROOT is built against a specific version of Python and cannot in general be used with a different one after being built. The error you are seeing is a simple permission problem. It may be a consequence of mixing brew commands with and without using sudo. I would not solve it by using sudo, however, but by giving yourself permissions to write into /usr/local. If that does not work, you can try to compile ROOT from sources. You will only need XCode and CMake, although you may have to build ROOT with several features disabled due to missing dependencies (you can pick up dependencies installed with brew using CMAKE_PREFIX_PATH, however).

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