# Error when trying to run the compiler

**URL:** <https://root-forum.cern.ch/t/error-when-trying-to-run-the-compiler/49095>\
**Category:** Garfield++\
**Created:** [March 9, 2022, 1:40am UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-the-compiler/49095 "2022-03-09T01:40:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucas\_Santos\_Sousa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/lucas_santos_sousa/32/28320_2.png) [@Lucas\_Santos\_Sousa](https://root-forum.cern.ch/u/Lucas_Santos_Sousa)\
**Post date:** [March 9, 2022, 1:40am UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-the-compiler/49095/1 "2022-03-09T01:40:29Z")

</div>

```auto
source /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/setup.sh
cmake .
make -j8

```

For while, everything is good and the executable ./build is done. The problem is, after i run ./build on terminal, i got this problem:

````auto
Heed: Could not retrieve database path.
ExAtomPhotoAbsCS::ExAtomPhotoAbsCS(...) const: ERROR:
cannot open file /shelllist.dat
FunNameStack: s_init=1 qname=1
  0 ExAtomPhotoAbsCS::ExAtomPhotoAbsCS(...) const 
File is /build/jenkins/workspace/lcg_release_pipeline/build/projects/Garfield++-HEAD/src/Garfield++/HEAD/Heed/heed++/code/PhotoAbsCS.cpp , line number is 1042
spexit_action: the streams will be now flushed
spexit_action: the abort function is called```

What could it be?
````

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [March 9, 2022, 7:49am UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-the-compiler/49095/2 "2022-03-09T07:49:07Z")

</div>

Sorry, I’m a bit lost. If you want to use the installation of Garfield++ from cvmfs the following should work:

```auto
source /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/setup.sh
source /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/share/Garfield/setupGarfield.sh

```

As I said in my previous reply, I would however recommend to build the project yourself to make sure you have the latest version (there have probably been a few bug fixes since the snapshot of Garfield++ that was included in LCG 101).

---

<div class="post-metadata">

**Author:** ![Lucas\_Santos\_Sousa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/lucas_santos_sousa/32/28320_2.png) [@Lucas\_Santos\_Sousa](https://root-forum.cern.ch/u/Lucas_Santos_Sousa)\
**Post date:** [March 9, 2022, 11:17pm UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-the-compiler/49095/3 "2022-03-09T23:17:49Z")

</div>

Again, you have solved my problem indirectly haha. I have just used the first source, didn’t know about the second one.

Now the build works as well 😛

---

<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:** [March 23, 2022, 11:18pm UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-the-compiler/49095/4 "2022-03-23T23:18:20Z")

</div>

Closed on March 23, 2022, 11:18pm UTC

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