# ROOT Installation on MacOS Ventura 13.2

**URL:** <https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079>\
**Category:** Newbie\
**Tags:** root\
**Created:** [January 13, 2023, 2:47am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079 "2023-01-13T02:47:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![drawal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/6bbea6/32.png) [@drawal](https://root-forum.cern.ch/u/drawal)\
**Post date:** [January 13, 2023, 2:47am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/1 "2023-01-13T02:47:43Z")

</div>

Hi,

I’m trying to download ROOT from source in a new directory on my Mac. I created a new directory /Users/d/ROOT1 and moved into that directory and then executed these commands (as listed on the website):

```auto
$ git clone --branch latest-stable --depth=1 https://github.com/root-project/root.git root_src
$ mkdir root_build root_install && cd root_build
$ cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root_src
$ cmake --build . -- install -j2

```

I also have MadGraph installed on my computer (/Users/d/MG5\_aMC\_v3\_4\_0).

When I run the cmake --build .–install -j2 command, I get this error:

```auto
CMake Error at /Users/d/ROOT1/root_build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-install-Release.cmake:49 (message):
  Command failed: 2

   '/Library/Developer/CommandLineTools/usr/bin/make' 'install'

  See also

    /Users/d/ROOT1/root_build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-install-*.log

make[2]: *** [AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-install] Error 1
make[1]: *** [CMakeFiles/AFTERIMAGE.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[57%] Built target llvm-tblgen
make: *** [all] Error 2

```

But when I open the AFTERIMAGE-install-error.log file, I see

```auto
rm: /Users/d/ROOT1/root_build/include/libAfterImage/*: No such file or directory
make[3]: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
make[3]: *** [install.static] Error 1

```

With the “make[3]: /Users/d/MG5\_aMC\_v3\_4\_0/install: Permission denied” line repeated several times before the [installl.static] Error 1 line.

I’m still pretty new to ROOT, so I’m not sure what exactly is going wrong. My best guess is that it’s not able to access the MadGraph directory, but I’m not sure why it would need to access MadGraph or how to fix that. I’ve tried running the cmake build command as superuser and adding sudo to the beginning, but it’s still not working.

Any help would be greatly appreciated!!

\_ROOT Version:\_6.26.10  
\_Platform:\_MacOS 13.2  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 13, 2023, 7:41am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/2 "2023-01-13T07:41:56Z")

</div>

Welcome to the ROOT Forum!

As the error says, you don’t have the permission to install in `/Users/d/MG5_aMC_v3_4_0/install`. You can install in another place, or, since it’s on MacOS, maybe @couet or @axel can tell how to fix this issue

---

<div class="post-metadata">

**Author:** ![drawal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/6bbea6/32.png) [@drawal](https://root-forum.cern.ch/u/drawal)\
**Post date:** [January 13, 2023, 8:10am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/3 "2023-01-13T08:10:24Z")

</div>

Thanks for your reply!

I’m still unsure why it’s trying to install in /Users/d/MG5\_aMC\_v3\_4\_0/install though. I’m building ROOT in a different folder (/Users/d/ROOT1/root\_build), is there some reason it’s trying to access MadGraph?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 13, 2023, 8:15am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/4 "2023-01-13T08:15:37Z")

</div>

I think this:

> [@drawal](#):
>
> `cmake --build . -- install -j2`

should be:

```auto
cmake --build . --target install -- -j2

```

---

<div class="post-metadata">

**Author:** ![drawal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/6bbea6/32.png) [@drawal](https://root-forum.cern.ch/u/drawal)\
**Post date:** [January 13, 2023, 8:22am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/5 "2023-01-13T08:22:25Z")

</div>

Hmm, I just tried that and I’m still getting the same error.

Just for my own edification, what’s the difference between the two lines above? What does the ‘–target’ do?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 13, 2023, 8:26am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/6 "2023-01-13T08:26:00Z")

</div>

The `--target` is telling CMake what to build, but you’re right, it should be the same than `-- install`. Can you try to build ROOT without the install flag, to see if it works?

---

<div class="post-metadata">

**Author:** ![drawal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/6bbea6/32.png) [@drawal](https://root-forum.cern.ch/u/drawal)\
**Post date:** [January 13, 2023, 8:28am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/7 "2023-01-13T08:28:49Z")

</div>

Just tried to build it without the install flag. I’m still getting the same error message in the terminal and the same errors in the .log file.

Here’s the specific command I executed:

```auto
cmake --build . -j2

```

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 13, 2023, 8:33am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/8 "2023-01-13T08:33:45Z")

</div>

why not simply `make -j2` ?

---

<div class="post-metadata">

**Author:** ![drawal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/6bbea6/32.png) [@drawal](https://root-forum.cern.ch/u/drawal)\
**Post date:** [January 13, 2023, 8:39am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/9 "2023-01-13T08:39:20Z")

</div>

Okay, I just ran `cmake .` which worked fine, then `make -j2` which gave me the same error I’ve been getting.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 13, 2023, 9:04am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/10 "2023-01-13T09:04:35Z")

</div>

I don’t understand what’s the relationship between MadGraph and libAfterImage, and I don’t really know how to debug this…

---

<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:** [January 13, 2023, 9:20am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/11 "2023-01-13T09:20:49Z")

</div>

I do not understand either why having MadGraph on your mac should interfere with the root install. libafterimage is part of ROOT, and I think the default is to use built-in libafterimage but I am not sure. Does MadGraph also install libafteriamge ?

---

<div class="post-metadata">

**Author:** ![drawal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/6bbea6/32.png) [@drawal](https://root-forum.cern.ch/u/drawal)\
**Post date:** [January 13, 2023, 5:33pm UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/12 "2023-01-13T17:33:02Z")

</div>

I don’t see any folder called libAfterimage in the MadGraph folder, but I see 2 occurrences of libAfterimage in ROOT1/root\_build.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 13, 2023, 7:52pm UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/13 "2023-01-13T19:52:17Z")

</div>

Check the output of: `export | grep MG5_aMC_v3_4_0`

---

<div class="post-metadata">

**Author:** ![drawal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/6bbea6/32.png) [@drawal](https://root-forum.cern.ch/u/drawal)\
**Post date:** [January 14, 2023, 3:43am UTC](https://root-forum.cern.ch/t/root-installation-on-macos-ventura-13-2/53079/14 "2023-01-14T03:43:50Z")

</div>

I ran `export | grep MG5_aMC_v3_4_0` and then `make -j2`. I’m still getting the same error in the terminal. The AFTERIMAGE-install-err.log file’s contents have changed to this now:

```auto
rm: /Users/d/ROOT1/root_build/include/libAfterImage/libAfterImage: is a directory
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
make[3]: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
make[3]: *** [install.static] Error 1
make[3]: *** Waiting for unfinished jobs....
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
/bin/sh: /Users/d/MG5_aMC_v3_4_0/install: Permission denied

```
