# Installing old root version

**URL:** <https://root-forum.cern.ch/t/installing-old-root-version/52511>\
**Category:** ROOT\
**Tags:** installation\
**Created:** [November 25, 2022, 8:37am UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511 "2022-11-25T08:37:59Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emil\_R](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emil_r/32/31255_2.png) [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Post date:** [November 25, 2022, 8:37am UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/1 "2022-11-25T08:37:59Z")

</div>

HI everybody,  
I am trying to install root 6.24 via homebrew and tried:

> brew install root@6.24.06

Sadly, this does not work. I am not an experienced user and therefore I need homebrew for the installation. Can anyone help or tell me, if it is even possible to install an older version.

Thanks,  
Emil

(MacOS 12.2.1)

---

<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:** [November 25, 2022, 2:06pm UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/2 "2022-11-25T14:06:17Z")

</div>

See other solution (`wget`) than homebrew here: [Installing ROOT - ROOT](https://root.cern/install/)

---

<div class="post-metadata">

**Author:** ![Emil\_R](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emil_r/32/31255_2.png) [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Post date:** [November 28, 2022, 6:49pm UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/3 "2022-11-28T18:49:42Z")

</div>

Thank you for your answer. Unfortunately there seems to be no version of root 6.24 for MacOS 12.2.1. Can I simply install a version for an older MacOS?  
Thanks,  
Emil

---

<div class="post-metadata">

**Author:** ![Emil\_R](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emil_r/32/31255_2.png) [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Post date:** [November 28, 2022, 7:11pm UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/4 "2022-11-28T19:11:43Z")

</div>

I tried to install root 6.24 via the download as proposed but that does not seem to work.

---

<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:** [November 29, 2022, 8:52am UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/5 "2022-11-29T08:52:24Z")

</div>

Yes there is no compiled version of ROOT for MacOS 12.2.1. See [Release 62408 - ROOT](https://root.cern/releases/release-62408/)  
At that time MacOS version was 11.7.  
You can recompile root from source as explained here:  
[Installing ROOT - ROOT](https://root.cern/install/#build-from-source)

---

<div class="post-metadata">

**Author:** ![Emil\_R](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emil_r/32/31255_2.png) [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Post date:** [November 29, 2022, 10:11am UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/6 "2022-11-29T10:11:41Z")

</div>

@couet Thank you for your answer. I am trying to do this and recompile root from source. Sadly this leads to the following error when building with cmake:

> \<\<\< cling interactive line includer \>\>\>: **fatal error:**  **module file ‘/opt/homebrew/opt/rootbuild/lib/Rint.pcm’ is out of date and needs to be rebuilt: could not read module signature**
> 
> \<\<\< cling interactive line includer \>\>\>: **note:** imported by module ‘MathCore’ in ‘/opt/homebrew/opt/rootbuild/lib/MathCore.pcm’
> 
> Error: Module ‘MathCore.pcm’ failed to load.
> 
> Error: Error loading the default rootcling header files.
> 
> make[2]: \*\*\* [math/mathmore/G\_\_MathMore.cxx] Error 1
> 
> make[1]: \*\*\* [math/mathmore/CMakeFiles/G\_\_MathMore.dir/all] Error 2
> 
> make: \*\*\* [all] Error 2

What does this mean and can I solve this problem?  
Thanks,  
Emil

---

<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:** [November 29, 2022, 10:23am UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/7 "2022-11-29T10:23:52Z")

</div>

Can you post here the commands you typed ?

---

<div class="post-metadata">

**Author:** ![Emil\_R](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emil_r/32/31255_2.png) [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Post date:** [November 29, 2022, 10:36am UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/8 "2022-11-29T10:36:39Z")

</div>

Sure:

```auto
wget https://root.cern/download/root_v6.24.06.source.tar.gz
tar -xzvf root_v6.24.06.source.tar.gz 
mkdir rootbuild rootinstall 
cd rootbuild
cmake -Dbuiltin_glew=ON -DCMAKE_INSTALL_PREFIX=../rootinstall ../root-6.24.06
cmake --build . --target install

```

---

<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:** [November 29, 2022, 10:57am UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/9 "2022-11-29T10:57:02Z")

</div>

what about:

```auto
wget https://root.cern/download/root_v6.24.06.source.tar.gz
tar -xzvf root_v6.24.06.source.tar.gz 
mkdir rootbuild 
cd rootbuild
cmake -all ../root-6.24.06
gmake -j8

```

---

<div class="post-metadata">

**Author:** ![Emil\_R](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emil_r/32/31255_2.png) [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Post date:** [November 29, 2022, 11:12am UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/10 "2022-11-29T11:12:52Z")

</div>

I got it to work with my commands now. Apparently there was just one file not correct, which got built again after deleting it. Now root 6.24 actually works, but I get one error and several info:

> Error in TCling::LoadPCM: ROOT PCM /opt/homebrew/opt/rootinstall/lib/libNet\_rdict.pcm file does not exist
> 
> Info in TCling::LoadPCM: In-memory ROOT PCM candidate /opt/homebrew/opt/rootinstall/lib/libASImageGui\_rdict.pcm  
> (There are more info’s but they are the similar with different pcm candidates).  
> As root seems to be working anyway, this is not urgent, but I would still like to get rid of these messages. Do you know what to change?

---

<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:** [November 29, 2022, 12:13pm UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/11 "2022-11-29T12:13:10Z")

</div>

```auto
 /opt/homebrew/opt/rootinstall/

```

is it where you installed ROOT ?  
Have you sourced `thisroot.sh` after the install ?  
what gives you `which root ` ?

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [November 29, 2022, 12:31pm UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/12 "2022-11-29T12:31:46Z")

</div>

> [@Emil\_R](#):
>
> Error in TCling::LoadPCM: ROOT PCM /opt/homebrew/opt/rootinstall/lib/libNet\_rdict.pcm file does not exist
> 
> Info in TCling::LoadPCM: In-memory ROOT PCM candidate /opt/homebrew/opt/rootinstall/lib/libASImageGui\_rdict.pcm  
> (There are more info’s but they are the similar with different pcm candidates).  
> As root seems to be working anyway, this is not urgent, but I would still like to get rid of these messages. Do you know what to change?

This seems to be a leftover of a previous installation of ROOT (presumably from Homebrew) in `/opt/homebrew/opt/rootinstall/`.  
Probably your `${ROOTSYS}` environment variable is pointing to that directory instead of pointing to where ROOT is currently installed.

As @couet said, you could try sourcing `bin/thisroot.sh` from your install directory, as in:

```bash
$ source path/to/install_of/root_v6.24/bin/thisroot.sh
$ root

```

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![Emil\_R](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emil_r/32/31255_2.png) [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Post date:** [November 29, 2022, 12:46pm UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/13 "2022-11-29T12:46:22Z")

</div>

The directory pointed out by @couet is were root is installed. I have sourced root by adding

> source /opt/homebrew/opt/rootinstall/bin/thisroot.sh

To the ~/.zprofile . And this is all working as root shows me that it’s version 6.24 and everything is running nicely. Therefore the problem is not urgent but it is a little bit annoying to get this error message every time I run root.  
I also took a look and in the folder `rootbuild/lib` there is no file called `libNet_rdict.pcm`. Also `make lib/libNet_rdict.pcm` does not work, as the error message for that command is:

> make: \*\*\* No rule to make target `lib/libNet\_rdict.pcm’. Stop.

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [November 29, 2022, 12:59pm UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/14 "2022-11-29T12:59:25Z")

</div>

> [@Emil\_R](#):
>
> I also took a look and in the folder `rootbuild/lib` there is no file called `libNet_rdict.pcm`. Also `make lib/libNet_rdict.pcm` does not work, as the error message for that command is:

It seems that there might have been a problem during build of PCM files. As @couet pointed out, I would suggest limiting the number of parallel processes during build.

Maybe you can try removing `lib/*.pcm` files and let `make` trigger the rebuild of those

```bash
$ rm lib/*.pcm
$ gmake -j8

```

See related post here: [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)

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![Emil\_R](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emil_r/32/31255_2.png) [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Post date:** [November 29, 2022, 1:11pm UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/15 "2022-11-29T13:11:59Z")

</div>

Unfortunately this does not solve the problem. However as everything I try to do with root seems to work anyway, I don’t think it is that necessary to solve this minor problem.  
Thank you all for your help!

---

<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:** [November 29, 2022, 1:21pm UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/16 "2022-11-29T13:21:28Z")

</div>

Ok, but a clean reinstall should have worked. Very likely, as @jalopezg said, you may have some left over.

---

<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:** [December 13, 2022, 1:22pm UTC](https://root-forum.cern.ch/t/installing-old-root-version/52511/17 "2022-12-13T13:22:15Z")

</div>

Closed on December 13, 2022, 1:22pm UTC

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