./castor-GATERootToCastor-root -error

Hi dear castor users
I use the following command to convert a root file to castor. However, I encounter the following error. I obtained the root output through simulation.
Your assistance and expertise in this matter would be immensely valuable to me.

./castor-GATERootToCastor -i final.root -m main.mac -o TBres -s TBres -geo -t

IncrementalExecutor::executeFunction: symbol ‘_ZN5cling7runtime6gClingE’ unresolved while linking [cling interface function]!
You are probably missing the definition of cling::runtime::gCling
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘_ZN5cling7runtime6gClingE’ unresolved while linking [cling interface function]!
You are probably missing the definition of cling::runtime::gCling
Maybe you need to load the corresponding shared library?
Fatal in TVirtualStreamerInfo::Factory: Cannot find the plugin handler for TVirtualStreamerInfo! However $ROOTSYS/etc/plugins/TVirtualStreamerInfo is accessible, Check the content of this directory!
aborting
#0 0x00007fbb724ea3ea in __GI___wait4 (pid=96034, stat_loc=stat_loc
entry=0x7ffc4f302ca8, options=options
entry=0, usage=usage
entry=0x0) at …/sysdeps/unix/sysv/linux/wait4.c:30
#1 0x00007fbb724ea3ab in __GI___waitpid (pid=, stat_loc=stat_loc
entry=0x7ffc4f302ca8, options=options
entry=0) at ./posix/waitpid.c:38
#2 0x00007fbb72450bdb in do_system (line=) at …/sysdeps/posix/system.c:171
#3 0x00007fbb73562e83 in TUnixSystem::StackTrace() () from /home/hpc_bodaghi/Softwares/root/lib/libCore.so.6.16
#4 0x00007fbb73434860 in DefaultErrorHandler(int, bool, char const*, char const*) () from /home/hpc_bodaghi/Softwares/root/lib/libCore.so.6.16
#5 0x00007fbb734341f2 in ErrorHandler () from /home/hpc_bodaghi/Softwares/root/lib/libCore.so.6.16
#6 0x00007fbb734346ef in Fatal(char const*, char const*, …) () from /home/hpc_bodaghi/Softwares/root/lib/libCore.so.6.16
#7 0x00007fbb7354b27d in TVirtualStreamerInfo::Factory() () from /home/hpc_bodaghi/Softwares/root/lib/libCore.so.6.16
#8 0x00007fbb734fe80e in TClass::GetStreamerInfo(int) const () from /home/hpc_bodaghi/Softwares/root/lib/libCore.so.6.16
#9 0x00007fbb7354485a in TStreamerBase::InitStreaming() () from /home/hpc_bodaghi/Softwares/root/lib/libCore.so.6.16
#10 0x00007fbb73544a30 in TStreamerBase::TStreamerBase(char const*, char const*, int) () from /home/hpc_bodaghi/Softwares/root/lib/libCore.so.6.16
#11 0x00007fbb72d90adb in TStreamerInfo::Build() () from /home/hpc_bodaghi/Softwares/root/lib/libRIO.so.6.16
#12 0x00007fbb72cd9e35 in TBufferFile::ReadClassBuffer(TClass const*, void*, TClass const*) () from /home/hpc_bodaghi/Softwares/root/lib/libRIO.so.6.16
#13 0x00007fbb72d8ed52 in TStreamerInfo::Streamer(TBuffer&) () from /home/hpc_bodaghi/Softwares/root/lib/libRIO.so.6.16
#14 0x00007fbb72cda25a in TBufferFile::ReadObjectAny(TClass const*) () from /home/hpc_bodaghi/Softwares/root/lib/libRIO.so.6.16
#15 0x00007fbb734ca89b in TList::Streamer(TBuffer&) () from /home/hpc_bodaghi/Softwares/root/lib/libCore.so.6.16
#16 0x00007fbb72d6b12f in TKey::ReadObjWithBuffer(char*) () from /home/hpc_bodaghi/Softwares/root/lib/libRIO.so.6.16
#17 0x00007fbb72d2d5ad in TFile::GetStreamerInfoListImpl(bool) () from /home/hpc_bodaghi/Softwares/root/lib/libRIO.so.6.16
#18 0x00007fbb72d28cdd in TFile::ReadStreamerInfo() () from /home/hpc_bodaghi/Softwares/root/lib/libRIO.so.6.16
#19 0x00007fbb72d349eb in TFile::Init(bool) () from /home/hpc_bodaghi/Softwares/root/lib/libRIO.so.6.16
#20 0x00007fbb72d35fe8 in TFile::TFile(char const*, char const*, char const*, int) () from /home/hpc_bodaghi/Softwares/root/lib/libRIO.so.6.16
#21 0x00005603da0235d1 in main ()
Aborted (core dumped)

Hi,

This looks like a ROOT problem. I think some of the libraries are not build during the installation process. I got the following while Googling the cling::runtime::gCling error

I suggest to re-install ROOT with proper flags. Hope this would help.