# Help - CASToR launch and install error

**URL:** <https://castor-project.discourse.group/t/help-castor-launch-and-install-error/120>\
**Category:** General Discussions\
**Created:** [October 4, 2019, 12:45am UTC](https://castor-project.discourse.group/t/help-castor-launch-and-install-error/120 "2019-10-04T00:45:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sowmiya\_Raj\_Thirumal](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@Sowmiya\_Raj\_Thirumal](https://castor-project.discourse.group/u/Sowmiya_Raj_Thirumal)\
**Post date:** [October 4, 2019, 12:45am UTC](https://castor-project.discourse.group/t/help-castor-launch-and-install-error/120/1 "2019-10-04T00:45:34Z")

</div>

Hi All,

I am new to CASToR. I installed it and I am trying to convert the ROOT file from GATE simulation as Castor data file and geom file for analysis. But, I am getting the following message. Could anyone please let me know how to launch CASToR and use the tool?

1. cd castor\_v2.1/bin
2. export CASTOR\_CONFIG=/home/sowmiya/castor\_v2.1/config/
3. castor\_v2.1$ castor-GATERootToCastor -i …/…/PET\_eg\_output.root -o PET\_phantom -m …/…/PET\_CylindricalPET\_System.mac -geo -s PET\_phantom

castor-GATERootToCastor: command not found

So, I tried to build CASToR with export CASTOR\_ROOT=1. I am getting the following errors. Could anyone please let me know what is the problem and how to correct it?

Making dependencies for datafile/iEventListPET.cc …  
Making dependencies for datafile/iDataFilePET.cc …  
make: root-config: Command not found  
Making dependencies for algorithm/oIterativeAlgorithm.cc …  
Making dependencies for algorithm/oSensitivityGenerator.cc …  
In file included from toolkits/castor-GATEMacToGeom.cc:42:0:  
include/management/gDataConversionUtilities.hh:44:21: fatal error: TROOT.h: No such file or directory  
compilation terminated.  
In file included from toolkits/castor-GATERootToCastor.cc:38:0:  
include/management/gDataConversionUtilities.hh:44:21: fatal error: TROOT.h: No such file or directory  
compilation terminated.  
In file included from src/management/gDataConversionUtilities.cc:32:0:  
include/management/gDataConversionUtilities.hh:44:21: fatal error: TROOT.h: No such file or directory  
compilation terminated.  
toolkits/castor-datafileConversionEx.cc:49:21: fatal error: TROOT.h: No such file or directory  
compilation terminated.  
make: root-config: Command not found  
make: root-config: Command not found  
make: root-config: Command not found  
Making dependencies for toolkits/castor-datafileConversionEx.cc …  
Making dependencies for toolkits/castor-GATEMacToGeom.cc …  
make: root-config: Command not found  
Making dependencies for toolkits/castor-GATERootToCastor.cc …  
Making dependencies for management/gDataConversionUtilities.cc …  
In file included from toolkits/castor-GATEMacToGeom.cc:42:0:  
include/management/gDataConversionUtilities.hh:44:21: fatal error: TROOT.h: No such file or directory  
compilation terminated.  
toolkits/castor-datafileConversionEx.cc:49:21: fatal error: TROOT.h: No such file or directory  
compilation terminated.  
In file included from toolkits/castor-GATERootToCastor.cc:38:0:  
include/management/gDataConversionUtilities.hh:44:21: fatal error: TROOT.h: No such file or directory  
compilation terminated.  
In file included from src/management/gDataConversionUtilities.cc:32:0:  
include/management/gDataConversionUtilities.hh:44:21: fatal error: TROOT.h: No such file or directory  
compilation terminated.  
make: root-config: Command not found  
make: root-config: Command not found

Thanks & Regards  
Sowmiya
