# Root got error with anaconda

**URL:** <https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687>\
**Category:** Cling\
**Tags:** root\
**Created:** [September 18, 2024, 1:23am UTC](https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687 "2024-09-18T01:23:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yiyu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/49beb7/32.png) [@yiyu](https://root-forum.cern.ch/u/yiyu)\
**Post date:** [September 18, 2024, 1:23am UTC](https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687/1 "2024-09-18T01:23:52Z")

</div>

Hi expert,  
I use conda to install root and succeed. however when I type `root`, it report the following message  
/opt/anaconda3/envs/hep/etc/cling/std\_darwin.modulemap:153:10: error: header ‘mdspan’ not found  
header “mdspan”  
^  
input\_line\_1:1:10: note: submodule of top-level module ‘std’ implicitly imported here  
#include   
^  
Warning in cling::IncrementalParser::CheckABICompatibility():  
Failed to extract C++ standard library version.  
Warning in cling::IncrementalParser::CheckABICompatibility():  
Possible C++ standard library mismatch, compiled with \_LIBCPP\_ABI\_VERSION ‘1’  
Extraction of runtime standard library version was: ‘’  
IncrementalExecutor::executeFunction: symbol ‘\_ZN5cling7runtime6gClingE’ unresolved while linking [cling interface function]!  
You are probably missing the definition of cling::runtime::gCling  
Maybe you need to load the corresponding shared library?

How can I fix this? Thanks.

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [September 18, 2024, 8:42am UTC](https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687/2 "2024-09-18T08:42:36Z")

</div>

Hi,

Thanks for the post.  
Can we have more details about your setup, e.g. root version and operating system?

best,  
D

---

<div class="post-metadata">

**Author:** ![yiyu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/49beb7/32.png) [@yiyu](https://root-forum.cern.ch/u/yiyu)\
**Post date:** [September 18, 2024, 10:49am UTC](https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687/3 "2024-09-18T10:49:52Z")

</div>

Hi,  
The root version is 6.32.0 and I use MacOS15(the latest version).  
The following command is what I used to install root:  
`conda create -c conda-forge --name hep root geant4 cmake `  
The conda installation package is “Anaconda3-2024.06-1-MacOSX-arm64.pkg” with python version 3.12.

After the first post, i tried to install an old root version (6.30.4) and python version is 3.10. I got no error for this version.

---

<div class="post-metadata">

**Author:** ![yiyu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/49beb7/32.png) [@yiyu](https://root-forum.cern.ch/u/yiyu)\
**Post date:** [September 19, 2024, 6:45am UTC](https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687/5 "2024-09-19T06:45:43Z")

</div>

Basically the same way:  
`conda create -c conda-forge --name hep root=6.30.4 python=3.10 geant4 cmake`

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [September 19, 2024, 7:25am UTC](https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687/6 "2024-09-19T07:25:29Z")

</div>

Dear @yiyu ,

I just tried installing ROOT from conda on my Mac version 14.4.1 and everything works for every ROOT version. I find it curious that on Mac 15 ROOT version 6.32 does not work for you but 6.30.4 works. I will need to get access to a Mac 15 machine and try to reproduce your issue.

Cheers,  
Vincenzo

---

<div class="post-metadata">

**Author:** ![yiyu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/49beb7/32.png) [@yiyu](https://root-forum.cern.ch/u/yiyu)\
**Post date:** [September 20, 2024, 1:48am UTC](https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687/7 "2024-09-20T01:48:31Z")

</div>

Hi,  
I have used 6.32.0 for months installed with conda, which works very well. About one week ago, I checked updates and updated some of the packages I installed with conda within the environment ‘hep’ I created. After the updates, I got the errors I posted when I use root. At that time, the MacOS version is 14.6.  
I tried to uninstall root and reinstall it. It doesn’t work.  
I tried to uninstall conda and reinstall it many times. It doesn’t work.  
I also tried to uninstall/reinstall Xcode command line tool. It doesn’t work.  
The MacOS15 released later and I upgrade the OS to it. I tried to the same thing i did with MacOS14.6. It still doesn’t work.  
I used an older version then, it works.

The above are what I experienced. I think the errors stem from the conda updates I did. But I don’t know why reinstallation doesn’t work.

Thanks

---

<div class="post-metadata">

**Author:** ![Grant](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/grant/32/35760_2.png) [@Grant](https://root-forum.cern.ch/u/Grant)\
**Post date:** [September 30, 2024, 3:50am UTC](https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687/8 "2024-09-30T03:50:53Z")

</div>

I met the same problem after updating my MacOS system to 15. Expect solution.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 14, 2024, 3:51am UTC](https://root-forum.cern.ch/t/root-got-error-with-anaconda/61687/9 "2024-10-14T03:51:33Z")

</div>

Closed on October 14, 2024, 3:51am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
