I was trying to install root on a new mac M1, either with brew or macports, but the installation fails in both cases[*]. Is there any recipe for that?
[*]
Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
Please create a new installation in /opt/homebrew using one of the
"Alternative Installs" from:
https://docs.brew.sh/Installation
You can migrate your previously installed formula list with:
brew bundle dump
> sudo port install root6
Password:
Error: Current platform "darwin 21" does not match expected platform "darwin 16"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
OS platform mismatch
while executing
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch
I am not sure what wrong with these pre-installed version. Have you search on this forum ?
I do not have expertise with HomeBrew nor macports. I usually install from sources.
Just to give some more help, I am under Monterey 12.2.1 - I found a relevant thread ROOT 6.24/06 can not work on macOS Monterey but it does not help me, as I always fail building from the source @couet what the recommendation is for Monterey? build from conda/brew?
Homebrew should be updated soon, I’m just stuck on the formula segfaulting on linuxbrew (works fine on homebrew macOS). Conda just got updated as well.
It looks like you are trying to install Intel Homewbrew on ARM - you need to use ARM homebrew, which installs to /opt/homebrew instead of /usr/local.
hi @Axel - I have just tried via brew brew install root it still downloads the 6.24.06.source and then when it tries to compile I get an error about fortran not existing, which is not true
You should be able to upgrade to 6.26 now too. I expect you installed brew quite a while ago or you installed it in a Rosetta shell, causing you to get the Intel version instead of the ARM one. It should work correctly in the ARM version.