# Error in \<TCling::LoadPCM\>

**URL:** <https://root-forum.cern.ch/t/error-in-tcling-loadpcm/65049>\
**Category:** ROOT\
**Created:** [November 10, 2026, 6:16pm UTC](https://root-forum.cern.ch/t/error-in-tcling-loadpcm/65049 "2026-11-10T18:16:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![YannBedfer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/e19b73/32.png) [@YannBedfer](https://root-forum.cern.ch/u/YannBedfer)\
**Post date:** [November 10, 2026, 6:16pm UTC](https://root-forum.cern.ch/t/error-in-tcling-loadpcm/65049/1 "2026-11-10T18:16:12Z")

</div>

* * *

_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

_Please fill also the fields below. Note that **`root -b -q`** will tell you this info, and starting from 6.28/06 upwards, you can call **`.forum bug`** from the ROOT prompt to pre-populate a topic._

_ROOT Version:_ 6.36.10  
_Platform:_ Alma9  
_Compiler:_ gcc

I get the following error when I execute a macro from the ROOT command line:

```auto

Error in <TCling::LoadPCM>: ROOT PCM /local/home/bedfer/analyses/root/root_install/lib/libNet_rdict.pcm file does not exist

```

What’s really weird about this is that the directory that LoadPCM is searching is **not** the one pointed to by my $ROOTSYS environment:

```auto
$ echo $ROOTSYS
/local/home/bedfer/analyses/root/root_instal2

```

( _Note the **root\_instal2** _ _in the path, while the error message reads **root\_install.)**_

I have in fact **two** installations of ROOT, which I got from github and compiled. I then source the setup script of **root\_instal2**.

Several questions:

1 Why doesn’t LoadPCM search the $ROOTSYS/lib directory?

2 How can it know about my alternative installation?

3 If I haven’t a `libNet_rdict.pcm` file, I do have a `Net.pcm·` one (_in both of my installations_): isn’t this enough to satisfy the request of LoadPCM?

4 How can get rid of the error (_which btw, seems to not affect the execution of my macro in any way_)?

Last: after the error message quoted supra, I get a bunch of info messages:

```auto
Info in <TCling::LoadPCM>: In-memory ROOT PCM candidate /local/home/bedfer/analyses/root/root_instal2/lib/libASImageGui_rdict.pcm 

```

How can I at least get rid of these?

---

<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:** [November 11, 2026, 8:30am UTC](https://root-forum.cern.ch/t/error-in-tcling-loadpcm/65049/2 "2026-11-11T08:30:45Z")

</div>

Check: `echo $LD_LIBRARY_PATH`

---

<div class="post-metadata">

**Author:** ![YannBedfer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/e19b73/32.png) [@YannBedfer](https://root-forum.cern.ch/u/YannBedfer)\
**Post date:** [November 11, 2026, 12:55pm UTC](https://root-forum.cern.ch/t/error-in-tcling-loadpcm/65049/3 "2026-11-11T12:55:05Z")

</div>

```auto

```

$ echo $LD\_LIBRARY\_PATH  
/local/home/bedfer/analyses/2016/MuEvtphi:/local/home/bedfer/analyses/root/root\_instal2/lib

=\> The root installation listed in `$LD_LIBRARY_PATH` is the intended one. And yet looks like LoadPCM is not searching there.

---

<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:** [November 11, 2026, 5:55pm UTC](https://root-forum.cern.ch/t/error-in-tcling-loadpcm/65049/4 "2026-11-11T17:55:52Z")

</div>

It seems to me that your macro tries to use something (e.g., some shared library) that was built a long time ago with some old ROOT version (the “`libNet_rdict.pcm`” and “`libASImageGui_rdict.pcm`” names suggest ROOT 6.18 or older).

---

<div class="post-metadata">

**Author:** ![YannBedfer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/e19b73/32.png) [@YannBedfer](https://root-forum.cern.ch/u/YannBedfer)\
**Post date:** [November 12, 2026, 8:43am UTC](https://root-forum.cern.ch/t/error-in-tcling-loadpcm/65049/5 "2026-11-12T08:43:26Z")

</div>

Right. Following your remark, I finally came to that conclusion… after some time.

If I invert the order of my two libraries in `$LD_LIBRARY_PATH`, the error disappears.

Unfortunately I have not been able to identify that older piece. built long ago. But this is a different issue…

Thank you for the tip.

---

<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:** [November 12, 2026, 3:51pm UTC](https://root-forum.cern.ch/t/error-in-tcling-loadpcm/65049/6 "2026-11-12T15:51:25Z")

</div>

So, check the content of your “`MuEvtphi`” directory (maybe you have shared libraries there that “replace” some of these from “`root_instal2/lib`”).  
Also inspect (without sourcing the ROOT setup script): `ldd /.../MuEvtphi/*.so`

---

<div class="post-metadata">

**Author:** ![YannBedfer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/e19b73/32.png) [@YannBedfer](https://root-forum.cern.ch/u/YannBedfer)\
**Post date:** [November 12, 2026, 4:49pm UTC](https://root-forum.cern.ch/t/error-in-tcling-loadpcm/65049/7 "2026-11-12T16:49:00Z")

</div>

I finally found the problem (I had been confusing two different installations of, this time, my ROOT macro. An old version of it was then stored in the `$LD_LIBRARY_PATH`).

Thank you very much for all your feed-back. That was of great help.

Yann Bedfer

---

<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:** [November 26, 2026, 4:49pm UTC](https://root-forum.cern.ch/t/error-in-tcling-loadpcm/65049/8 "2026-11-26T16:49:46Z")

</div>

Closed on November 26, 2026, 4:49pm UTC

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