I have a Mac and today I updated the OS to the new one, called Catalina.
The problem is that now root is not working anymore.
If I do on the shell root name_prog.cpp where name_prog is also the name of the main function of it, at the beginning it gave me lots of errors and now it doesn’t recognize also the command root.
Can you help me with this problem?
I did also chsh -s /bin/zsh
$ROOTSYS should point where ROOT is installed on your system. And $PATH should contain the path corresponding to $ROOTSYS/bin . This is normally set when you do:
this means that ROOT is no more installed on my laptop? I try to follow the path above but I can’t arrive to the directory. What can I do to run correctly root again?
Which path ? you do not know where root is installed on your machine ?
With the search icon top right of your Mac top bar, search for “root.exe” then “show all in finder” . Then point on root.exe in that finder window. It should tell you (at the bottom of the finder window) where the root.exe binary is.
#include <string>
^~~~~~~~
------------------------------------------------------------
| Welcome to ROOT 6.12/06 http://root.cern.ch |
| (c) 1995-2017, The ROOT Team |
| Built for macosx64 |
| From tag v6-12-06, 9 February 2018 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------
input_line_9:1:10: fatal error: 'iostream' file not found
#include <iostream>
^~~~~~~~~~
root [0]
and there is some error because I’m not doing anything, I just done root.
If I go in any other folder the output from typing root is zsh: command not found: root
I do not know the exact state of your machine. May be try to re-install root ? It might be there is some incompatibilities with the root binary you have and the new MacOsX. I do not see this problem on my Catalina machine because I re-install root from sources several times per day. Also have you updated XCode ?
I updated Xcode when the Apple made the realest some days ago and I have no problem. The problem raised today with Catalina.
I will try to re-install root but I’m not an expert. Can you give me some tips to uninstall root and re-install it? I can’t find a way to do it online and I’m not able.
With the update to Catalina some of the SDKs for 10.14 will have been removed. reinstall command line tools in the usual way
xcode-select --install
This solved the problem for me. There will be a painful setup period where you have to approve the use of every single library since Catalina only allows software that has been notarised by Apple. This may happen each time you use a new library.
To check look here
ls /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk