# building CASToR with root library

**URL:** <https://castor-project.discourse.group/t/building-castor-with-root-library/147>\
**Category:** General Discussions\
**Created:** [April 28, 2020, 4:17pm UTC](https://castor-project.discourse.group/t/building-castor-with-root-library/147 "2020-04-28T16:17:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suguru\_Katsube](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Suguru\_Katsube](https://castor-project.discourse.group/u/Suguru_Katsube)\
**Post date:** [April 28, 2020, 4:17pm UTC](https://castor-project.discourse.group/t/building-castor-with-root-library/147/1 "2020-04-28T16:17:38Z")

</div>

Dear all,

I want to reconstruct GATE simulation data. I have already installed CASToR in virtual machine (ubuntu).  
CASToR was configured the compilation using the following environment variables

export CASToR\_CONFIG=/home/gate/castor\_v.3.0.1/config  
export CASToR\_OMP=1  
export CASToR\_ROOT=1

I have successfully reconstructed the benchmark for the list mode data. However, the castor-GATE-RootToCastor command did not work. The following error was displayed.  
“CASToR must be compiled with ROOT to read input root files” The installation manual states, “root-config -libs And root-config -cflags variables are correctly initialized.” How do I deal with this?

Any advice are appreciated.

Best regards,

---

<div class="post-metadata">

**Author:** ![Suguru\_Katsube](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Suguru\_Katsube](https://castor-project.discourse.group/u/Suguru_Katsube)\
**Post date:** [April 28, 2020, 4:51pm UTC](https://castor-project.discourse.group/t/building-castor-with-root-library/147/2 "2020-04-28T16:51:14Z")

</div>

I will supplement the information. I have installed CASToR on vGATE8.2 (including ROOT6.14.00).

Thank you.

Best regards,

2020年4月29日(水) 1:17 Suguru Katsube \<[sug.katsu@gmail.com](mailto:sug.katsu@gmail.com)\>:

---

<div class="post-metadata">

**Author:** ![tmerlin](https://yyz2.discourse-cdn.com/free1/user_avatar/castor-project.discourse.group/tmerlin/32/216_2.png) [@tmerlin](https://castor-project.discourse.group/u/tmerlin)\
**Post date:** [April 28, 2020, 5:54pm UTC](https://castor-project.discourse.group/t/building-castor-with-root-library/147/3 "2020-04-28T17:54:03Z")

</div>

H Suguru,

This may be a typo as Makefile environment variables must be all written in uppercase (CASTOR\_ROOT instead of CASToR\_ROOT).

Best,  
Thibaut

Suguru Katsube \<[sug.katsu@gmail.com](mailto:sug.katsu@gmail.com)\> a écrit :
