# PCM file not found

**URL:** <https://root-forum.cern.ch/t/pcm-file-not-found/48374>\
**Category:** ROOT\
**Tags:** root\
**Created:** [January 13, 2022, 7:44pm UTC](https://root-forum.cern.ch/t/pcm-file-not-found/48374 "2022-01-13T19:44:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![timgray](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/timgray/32/27725_2.png) [@timgray](https://root-forum.cern.ch/u/timgray)\
**Post date:** [January 13, 2022, 7:44pm UTC](https://root-forum.cern.ch/t/pcm-file-not-found/48374/1 "2022-01-13T19:44:28Z")

</div>

I have a number of libraries containing custom classes for use in the ROOT framework. They are contained in a contained in a directory ($HOME/.local/lib/), together with their \*\_rdict.pcm files.

However, when I try to load these (either automatically or manually) with

`gROOT->ProcessLine(".L path_to_library.dylib")`

I get the message

`Error in <TCling::LoadPCM>: ROOT PCM <root_build_directory/bin/library_rdict.pcm> file does not exist`

As I understand it, the \*\_rdict.pcm file should be either in the same file as the library (which it is), or in the LD\_LIBRARY\_PATH. The directory containing both the \*\_rdict.pcm file and the library is in both LD\_LBIRARY\_PATH and DYLD\_LIBRARY\_PATH.

I’m not sure why ROOT seems to be looking in the root build directory bin folder for the pcm file. Is there a way to correct this behavior and direct ROOT to search the correct directory?

Thanks

* * *

_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)_

\_ROOT Version: 6.27/01  
\_Platform: macOS  
\_Compiler: clang-1300.0.29.3

* * *

---

<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:** [January 14, 2022, 11:16am UTC](https://root-forum.cern.ch/t/pcm-file-not-found/48374/2 "2022-01-14T11:16:48Z")

</div>

Hi @timgray,

> [@timgray](#):
>
> As I understand it, the \*\_rdict.pcm file should be either in the same file as the library (which it is), or in the LD\_LIBRARY\_PATH. The directory containing both the \*\_rdict.pcm file and the library is in both LD\_LBIRARY\_PATH and DYLD\_LIBRARY\_PATH.

Indeed, `xxx_rdict.pcm` files should be located either in the same directory or `LD_LIBRARY_PATH`. See also related forum topic: [Cannot find my rdict.pcm files](https://root-forum.cern.ch/t/cannot-find-my-rdict-pcm-files/21901).

Maybe @Axel or @pcanal have any idea?

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![timgray](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/timgray/32/27725_2.png) [@timgray](https://root-forum.cern.ch/u/timgray)\
**Post date:** [January 14, 2022, 9:10pm UTC](https://root-forum.cern.ch/t/pcm-file-not-found/48374/3 "2022-01-14T21:10:46Z")

</div>

Thanks for the reply @jalopezg. I saw the post you linked - this is one of the reasons as I’m confused as the error message would suggest that ROOT isn’t looking in either of those places. In fact, I still get the errors when I run root in the directory where the libraries are stored.

Thanks

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [January 24, 2022, 10:24am UTC](https://root-forum.cern.ch/t/pcm-file-not-found/48374/4 "2022-01-24T10:24:35Z")

</div>

I agree, that seems to be a bug. Can you open a ticket at [Sign in to GitHub · GitHub](https://github.com/root-project/root/issues/new/choose) please? Thank you!

---

<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:** [February 7, 2022, 10:24am UTC](https://root-forum.cern.ch/t/pcm-file-not-found/48374/5 "2022-02-07T10:24:58Z")

</div>

Closed on February 7, 2022, 10:24am UTC

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