# MacOS Monterey

**URL:** <https://root-forum.cern.ch/t/macos-monterey/49629>\
**Category:** General Chat\
**Created:** [April 19, 2022, 1:16pm UTC](https://root-forum.cern.ch/t/macos-monterey/49629 "2022-04-19T13:16:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfelix](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/a8b319/32.png) [@wfelix](https://root-forum.cern.ch/u/wfelix)\
**Post date:** [April 19, 2022, 1:16pm UTC](https://root-forum.cern.ch/t/macos-monterey/49629/1 "2022-04-19T13:16:10Z")

</div>

Hello,

I recently updated my Mac to macOS Monterey (12.3.1) and tried to open root. However, I get the following error message:

warning: no such sysroot directory: ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk’

C system headers (glibc/Xcode/Windows SDK) must be installed.

**error:**  **entry with relative path at the root level is not discoverable**

{ ‘name’: ‘’, ‘type’: ‘directory’,

**^~**

Error in modulemap.overlay!

I am aware of the fact that questions like this have been asked here before, however their solutions didn’t work for me. I uninstalled Xcode 13.1 and installed Xcode 13 with its CLT. I deinstalled and reinstalled root via home-brew. I still get this error. Any suggestions?

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [April 19, 2022, 1:26pm UTC](https://root-forum.cern.ch/t/macos-monterey/49629/2 "2022-04-19T13:26:07Z")

</div>

Hi @wfelix ,  
and welcome to the ROOT forum! Just to confirm, running `xcode-select --install` does not help either?

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![wfelix](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/a8b319/32.png) [@wfelix](https://root-forum.cern.ch/u/wfelix)\
**Post date:** [April 19, 2022, 1:27pm UTC](https://root-forum.cern.ch/t/macos-monterey/49629/3 "2022-04-19T13:27:53Z")

</div>

> [@eguiraud](#):
>
> xcode-select --install

Thanks for the quick answer. Sadly, doing this just gives me an error which tells me that the CLT are already installed. Should I update them (although I think root doesn’t work with the updated versions of Xcode)?

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [April 19, 2022, 1:37pm UTC](https://root-forum.cern.ch/t/macos-monterey/49629/4 "2022-04-19T13:37:05Z")

</div>

Yes, the latest ROOT version should work on Monterey, we even have [an official package](https://root.cern/releases/release-62602/) for it (you could try using that one instead of the homebrew package).

Unfortunately I am not sure what could cause the errors you are seeing. @henryiii would you know?

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![wfelix](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/a8b319/32.png) [@wfelix](https://root-forum.cern.ch/u/wfelix)\
**Post date:** [April 19, 2022, 1:45pm UTC](https://root-forum.cern.ch/t/macos-monterey/49629/5 "2022-04-19T13:45:29Z")

</div>

How exactly do I install these on a Mac? Sorry, I haven’t done this before

---

<div class="post-metadata">

**Author:** ![henryiii](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/henryiii/32/14065_2.png) [@henryiii](https://root-forum.cern.ch/u/henryiii)\
**Post date:** [April 19, 2022, 2:06pm UTC](https://root-forum.cern.ch/t/macos-monterey/49629/6 "2022-04-19T14:06:47Z")

</div>

Try:

```bash
xcode-select --reset
sudo xcodebuild -license

```

See [Setup a New Mac - ISciNumPy.dev](https://iscinumpy.dev/post/setup-a-new-mac/) under “if it ever breaks”. That might help.

---

<div class="post-metadata">

**Author:** ![rhystaus](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rhystaus/32/33766_2.png) [@rhystaus](https://root-forum.cern.ch/u/rhystaus)\
**Post date:** [April 19, 2022, 3:52pm UTC](https://root-forum.cern.ch/t/macos-monterey/49629/7 "2022-04-19T15:52:39Z")

</div>

If you rebuild from source there seems to be an issue discussed here. I was able to build root today with the procedure.

> [@WSL Build from source error: RInt.pcm is out of date \\ cannot read module signature](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/15):
>
> After trying to successfully rebuild root from source after updating my OS this is the solution that worked for me.

---

<div class="post-metadata">

**Author:** ![wfelix](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/a8b319/32.png) [@wfelix](https://root-forum.cern.ch/u/wfelix)\
**Post date:** [April 19, 2022, 4:07pm UTC](https://root-forum.cern.ch/t/macos-monterey/49629/8 "2022-04-19T16:07:31Z")

</div>

If I do this, I get the following error message:  
xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

---

<div class="post-metadata">

**Author:** ![henryiii](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/henryiii/32/14065_2.png) [@henryiii](https://root-forum.cern.ch/u/henryiii)\
**Post date:** [April 19, 2022, 5:39pm UTC](https://root-forum.cern.ch/t/macos-monterey/49629/9 "2022-04-19T17:39:52Z")

</div>

You need to install Xcode from the Mac App Store for that command to work. If you only have the command line tools, and not full Xcode, I don’t think it works - I’m not sure how to reset the command-line tools without Xcode. Maybe you can uninstall and reinstall? I believe we’ve seen ROOT work with only some warnings produced without Xcode installed, but I’m not sure - usually we’d recommend having Xcode.

---

<div class="post-metadata">

**Author:** ![henryiii](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/henryiii/32/14065_2.png) [@henryiii](https://root-forum.cern.ch/u/henryiii)\
**Post date:** [April 19, 2022, 5:43pm UTC](https://root-forum.cern.ch/t/macos-monterey/49629/10 "2022-04-19T17:43:09Z")

</div>

There might be a way to use `xcode-select --switch <dir>`, not sure what dir it needs there, but that might be it. This is what my directory looks like:

```auto
ls -la /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs Tue Apr 19 13:41:56 2022
total 0
drwxr-xr-x 4 root wheel 128 Apr 11 14:18 ./
drwxr-xr-x 6 root wheel 192 Apr 11 14:18 ../
drwxr-xr-x 7 root wheel 224 Apr 11 14:17 MacOSX.sdk/
lrwxr-xr-x 1 root wheel 10 Mar 14 23:30 MacOSX12.3.sdk@ -> MacOSX.sdk

```

Interestingly, that’s reversed from what I’d expect, I’d have thought the 12.3 path would have been the real path, and the unversioned path would be the symlink.
