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

Hello,

I am very new to Root and C++ so any help would be appreciated. I have a MacBook running MacOS 13.3 so I downloaded the binary package from Root’s website and unpackaged the tar file. After that, I sourced it by writing source bin/thisroot.sh. However, now whenever I type in root in an attempt to run it, it prints:

sh: /Library/Developer/CommandLineTools/usr/bin/c++: No such file or directory
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
LC_ALL=C /Library/Developer/CommandLineTools/usr/bin/c++ -isysroot;/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -xc++ -E -v /dev/null 2>&1 | sed -n -e ‘/^.include/,${’ -e ‘/^ /.*++/p’ -e ‘}’
Results was:
sh: /Library/Developer/CommandLineTools/usr/bin/c++: No such file or directory
With exit code 0
warning: no such sysroot directory: ‘/Library/Developer/CommandLineTools/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 have XCode downloaded, and it seems to be working.

Please let me know what I can do to fix this. Thank you in advance!

Can you run xcode-select --install? See Dependencies - ROOT Does ROOT start afterwards? If not, what does clang --version say?

Were you able to the resolve the issue? I’m having the same problem. Let me know if so, thanks!

My versions are:

Mac OS: Monterey 12.1
Xcode App: 13.4.1
Xcode-select version 2392