# Error Building ROOT on MaCOS Catalina

**URL:** <https://root-forum.cern.ch/t/error-building-root-on-macos-catalina/41687>\
**Category:** Newbie\
**Created:** [October 2, 2020, 11:19pm UTC](https://root-forum.cern.ch/t/error-building-root-on-macos-catalina/41687 "2020-10-02T23:19:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmat](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@ahmat](https://root-forum.cern.ch/u/ahmat)\
**Post date:** [October 2, 2020, 11:19pm UTC](https://root-forum.cern.ch/t/error-building-root-on-macos-catalina/41687/1 "2020-10-02T23:19:58Z")

</div>

Hi,

I’m getting the following error when building the latest version of ROOT.

```auto
git clone https://github.com/root-project/root
mkdir rootbuild rootinstall
cd rootbuild
cmake -DCMAKE_INSTALL_PREFIX=../rootinstall -DPython3_EXECUTABLE=/usr/local/bin/python3 ../root
cmake --build . -- -j6

```

 ![screen_1](https://root-forum.cern.ch/uploads/default/original/3X/9/4/9427080ab7b10e8a1143ebf487693e5b2c884db9.png)

…

 ![screen_2](https://root-forum.cern.ch/uploads/default/original/3X/3/3/33ceac8cd6df5f5844607ec19e122baf9e27e4a0.png)

Thanks.

ROOT Version: Installed (6.21.01), Building (Github#master branch, ROOT 6.23.01)  
Platform: MacOS Catalina 10.15.7  
Compiler: AppleClang 10.0.1.10010046

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [October 5, 2020, 1:41pm UTC](https://root-forum.cern.ch/t/error-building-root-on-macos-catalina/41687/2 "2020-10-05T13:41:53Z")

</div>

Hi

Do you have the latest xcode installed and run the command  
`xcode-select --install` ?

This is needed before building ROOT

Lorenzo

---

<div class="post-metadata">

**Author:** ![ahmat](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@ahmat](https://root-forum.cern.ch/u/ahmat)\
**Post date:** [October 5, 2020, 11:08pm UTC](https://root-forum.cern.ch/t/error-building-root-on-macos-catalina/41687/3 "2020-10-05T23:08:05Z")

</div>

Hi Lorenzo,

I think xcode is up to date.

```auto
➜ ~ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

```

I have removed ROOT 6.21.01 flags and now things seem to be working correctly.

Regards,  
Ahmat
