# .pcm file load path

**URL:** <https://root-forum.cern.ch/t/pcm-file-load-path/56307>\
**Category:** ROOT\
**Created:** [September 7, 2023, 7:35pm UTC](https://root-forum.cern.ch/t/pcm-file-load-path/56307 "2023-09-07T19:35:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chestera](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/258eb7/32.png) [@chestera](https://root-forum.cern.ch/u/chestera)\
**Post date:** [September 7, 2023, 7:35pm UTC](https://root-forum.cern.ch/t/pcm-file-load-path/56307/1 "2023-09-07T19:35:40Z")

</div>

ROOT version: 6.24/06  
Platform: Debian 10 (buster) singularity container on native Debian 11 5.10.0-21-amd64  
Compiler: from source, unknown

I have an application which requires I/O of custom classes to a ROOT file. I make a ROOT dictionary using rootcling in a GNU Makefile and use the dictionary to create a shared library. The program which writes to a ROOT file links the object file generated from the ROOT dictionary, it does not load the library. Once built, everything is installed in some top-level install directory: executables in /bin, libraries, rootmap and pcm files in /lib, headers in /include.

If I run the installed code, I see the following:

Error in TCling::LoadPCM: ROOT PCM /user/chester/ddastoys/bin/DDASRootFit\_rdict.pcm file does not exist  
Info in TCling::LoadPCM: In-memory ROOT PCM candidate /usr/opt/root/root-6.24.06/lib/libASImageGui\_rdict.pcm  
Info in TCling::LoadPCM: In-memory ROOT PCM candidate /usr/opt/root/root-6.24.06/lib/libASImage\_rdict.pcm  
Info in TCling::LoadPCM: In-memory ROOT PCM candidate /usr/opt/root/root-6.24.06/lib/libEG\_rdict.pcm  
…  
More in-memory candidates  
…

This error is correct - the file it is looking for is /user/chester/ddastoys/lib/DDASRootFit\_rdict.pcm. I have found two other forum posts which suggest that LD\_LIBRARY\_PATH is searched for .pcm files ([Cannot find my rdict.pcm files](https://root-forum.cern.ch/t/cannot-find-my-rdict-pcm-files/21901) and [gSystem-\>Load problem pcm files not found](https://root-forum.cern.ch/t/gsystem-load-problem-pcm-files-not-found/39306)). I can:

export LD\_LIBRARY\_PATH=/user/chester/ddastoys/lib:$LD\_LIBRARY\_PATH  
echo $LD\_LIBRARY\_PATH

and verify that /user/chester/ddastoys/lib is in the LD\_LIBRARY\_PATH. This does not fix the error. If I symlink the .pcm file in the /bin directory, the code runs without warnings.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![mczurylo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mczurylo/32/33269_2.png) [@mczurylo](https://root-forum.cern.ch/u/mczurylo)\
**Post date:** [September 8, 2023, 8:41am UTC](https://root-forum.cern.ch/t/pcm-file-load-path/56307/2 "2023-09-08T08:41:24Z")

</div>

Hi @chestera,

welcome to the root forum. Maybe @Axel could help here?

Cheers,  
Marta

---

<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 21, 2023, 9:50am UTC](https://root-forum.cern.ch/t/pcm-file-load-path/56307/3 "2023-09-21T09:50:08Z")

</div>

Hi Chester,

Apologies for coming back to you after a while. In case the problem is not fixed yet, could you post the recipe with which you built and installed root?

Best,  
D

---

<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 5, 2023, 9:50am UTC](https://root-forum.cern.ch/t/pcm-file-load-path/56307/4 "2023-10-05T09:50:29Z")

</div>

Closed on October 5, 2023, 9:50am UTC

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