# Problem running root after update to Mac Catalina

**URL:** <https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298>\
**Category:** ROOT\
**Created:** [October 10, 2019, 12:24pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298 "2019-10-10T12:24:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Svante](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@Svante](https://root-forum.cern.ch/u/Svante)\
**Post date:** [October 10, 2019, 12:24pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/1 "2019-10-10T12:24:09Z")

</div>

Dear all,

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`

* * *

_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

_ROOT Version:_ 6/6.12  
_Platform:_ Not Provided  
_Compiler:_ zsh

* * *

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 10, 2019, 12:47pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/2 "2019-10-10T12:47:54Z")

</div>

What do you get it you type only:

```auto
 root

```

?

---

<div class="post-metadata">

**Author:** ![Svante](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@Svante](https://root-forum.cern.ch/u/Svante)\
**Post date:** [October 10, 2019, 12:48pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/3 "2019-10-10T12:48:50Z")

</div>

this

`zsh: command not found: root`

---

<div class="post-metadata">

**Author:** ![Svante](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@Svante](https://root-forum.cern.ch/u/Svante)\
**Post date:** [October 10, 2019, 12:50pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/4 "2019-10-10T12:50:01Z")

</div>

I checked and I have still installed home-brew and Cmake

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 10, 2019, 12:51pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/5 "2019-10-10T12:51:25Z")

</div>

> [@Svante](#):
>
> zsh: command not found: root

That means the `$PATH` variable does not contain the directory where the `root ` binary is.  
what do you get when you do:

```auto
echo $PATH

```

and:

```auto
echo $ROOTSYS

```

---

<div class="post-metadata">

**Author:** ![Svante](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@Svante](https://root-forum.cern.ch/u/Svante)\
**Post date:** [October 10, 2019, 12:53pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/6 "2019-10-10T12:53:19Z")

</div>

when I do `echo $PATH` I get `/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Apple/bin:/Library/TeX/texbin:/opt/X11/bin`

and when I do `echo $ROOTSYS` I get a empty line

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 10, 2019, 12:58pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/7 "2019-10-10T12:58:08Z")

</div>

`$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:

```auto
cd where_root_is_installed
. bin/thisroot.sh

```

---

<div class="post-metadata">

**Author:** ![Svante](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@Svante](https://root-forum.cern.ch/u/Svante)\
**Post date:** [October 10, 2019, 1:04pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/8 "2019-10-10T13:04:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 10, 2019, 1:11pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/9 "2019-10-10T13:11:48Z")

</div>

> [@Svante](#):
>
> I try to follow the path above but I can’t arrive to the directory.

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.

---

<div class="post-metadata">

**Author:** ![Svante](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@Svante](https://root-forum.cern.ch/u/Svante)\
**Post date:** [October 10, 2019, 1:28pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/10 "2019-10-10T13:28:15Z")

</div>

Ok, I went where my root is installed and did `. bin/thisroot` but when I try again to open root it doesn’t work.

Maybe there is something that I don’t understand.

---

<div class="post-metadata">

**Author:** ![Svante](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@Svante](https://root-forum.cern.ch/u/Svante)\
**Post date:** [October 10, 2019, 1:31pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/11 "2019-10-10T13:31:24Z")

</div>

if I type `root` on this folder I get:

```auto
#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`

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 10, 2019, 1:47pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/12 "2019-10-10T13:47:18Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![Svante](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@Svante](https://root-forum.cern.ch/u/Svante)\
**Post date:** [October 10, 2019, 11:34pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/13 "2019-10-10T23:34:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 11, 2019, 6:58am UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/14 "2019-10-11T06:58:01Z")

</div>

To download binaries use this page:  
[https://root.cern.ch/downloading-root](https://root.cern.ch/downloading-root)

Reinstalling from sources is explained at the bottom of this page:

> **[root-project/root](https://github.com/root-project/root)**
>
> The official repository for ROOT: analyzing, storing and visualizing big data, scientifically - root-project/root

To uninstall root simply remove the folder (and its content) where it is installed.

---

<div class="post-metadata">

**Author:** ![Iain\_Bertram1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/iain_bertram1/32/19950_2.png) [@Iain\_Bertram1](https://root-forum.cern.ch/u/Iain_Bertram1)\
**Post date:** [October 11, 2019, 8:10pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/15 "2019-10-11T20:10:37Z")

</div>

No need to reinstall root.

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

---

<div class="post-metadata">

**Author:** ![Iain\_Bertram1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/iain_bertram1/32/19950_2.png) [@Iain\_Bertram1](https://root-forum.cern.ch/u/Iain_Bertram1)\
**Post date:** [October 11, 2019, 8:16pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/16 "2019-10-11T20:16:30Z")

</div>

You will get app up message sharing:

" **“libTree.6.18.04.so” cannot be opened because the developer cannot be verified.**"

Select cancel…

Go to -\> System Preferences -\> Security -\> Click “Allow Anyway”

Run again, select open. Repeat countless times. Once you have done them all it will run.

---

<div class="post-metadata">

**Author:** ![barlase](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/d07c76/32.png) [@barlase](https://root-forum.cern.ch/u/barlase)\
**Post date:** [October 24, 2019, 2:26am UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/17 "2019-10-24T02:26:27Z")

</div>

I had the same problem after this Mac update. Doing what you suggested solved my problem.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Cheb\_Sr](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/cheb_sr/32/19243_2.png) [@Cheb\_Sr](https://root-forum.cern.ch/u/Cheb_Sr)\
**Post date:** [November 5, 2019, 6:28pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/18 "2019-11-05T18:28:37Z")

</div>

Hello, I tried as your guidance. But after that, there still have some errors:

```auto
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
  LC_ALL=C /Library/Developer/CommandLineTools/usr/bin/c++ -O2 -DNDEBUG -xc++ -E -v /dev/null 2>&1 >/dev/null | awk '/^#include </,/^End of search/{if (!/^#include </ && !/^End of search/){ print }}' | GREP_OPTIONS= grep -E "(c|g)\+\+"
Results was:
With exit code 256
warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk'
input_line_1:1:10: fatal error: 'new' file not found
#include <new>
         ^ ~~~~
input_line_3:37:10: fatal error: 'string' file not found
#include <string>
         ^ ~~~~~~~
   ------------------------------------------------------------
  | Welcome to ROOT 6.18/04 https://root.cern |
  | (c) 1995-2019, The ROOT Team |
  | Built for macosx64 on Sep 11 2019, 15:38:23 |
  | From tags/v6-18-04@v6-18-04 |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------

input_line_7:1:10: fatal error: 'iostream' file not found
#include <iostream>
         ^ ~~~~~~~~~
root [0] 

```

Can you give me some advice?

---

<div class="post-metadata">

**Author:** ![Iain\_Bertram1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/iain_bertram1/32/19950_2.png) [@Iain\_Bertram1](https://root-forum.cern.ch/u/Iain_Bertram1)\
**Post date:** [November 7, 2019, 10:44am UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/19 "2019-11-07T10:44:42Z")

</div>

This could be one of two things,

1. You do not have the headers installed. Run xcode-select --install

Check the install: ls /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk

1. Note that your terminal may not have permission to access the directories which could cause problems

Go to Control panel -\> Privacy -\> Full Disk Access -\> Select your terminal app.

I Use iTerm…

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [November 17, 2019, 2:25pm UTC](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298/20 "2019-11-17T14:25:27Z")

</div>

Split this topic on November 17, 2019, 2:25pm UTC

4 posts were split to a new topic: [Mac Cataline: “cannot be opened because the developer cannot be verified”](https://root-forum.cern.ch/t/mac-cataline-cannot-be-opened-because-the-developer-cannot-be-verified/36864)

[Next page](https://root-forum.cern.ch/t/problem-running-root-after-update-to-mac-catalina/36298.md?page=2)
