Skip to content

Enabling HTTP with root

Hi all,

I'm trying to set up this package in Lyon. It's running: we can load the firmware and communicate with our module. But now that we are trying to calibrate, I'm hitting an issue:

06.11.2019 13:03 ||I| Configuring HW parsed from .xml file: 
06.11.2019 13:03 ||I| Setting the I2C address table
06.11.2019 13:03 ||I| According to the Firmware status registers, it was compiled for: 1 hybrid(s), 2 CBC3 chip(s) per hybrid
06.11.2019 13:03 ||I| Enabling Hybrid 0
06.11.2019 13:03 ||I| 1 hybrid(s) was(were) enabled with the total amount of 0 chip(s)!
06.11.2019 13:03 ||I| Successfully received *Pings* from 0 Cbcs
06.11.2019 13:03 ||I| CBC3 Phase tuning finished succesfully
06.11.2019 13:03 ||I| Waiting for DDR3 to finish initial calibration
06.11.2019 13:03 ||I| Successfully configured Board 0
06.11.2019 13:03 ||I| Creating directory: Results/Calibration_Electron_06-11-19_13h03
input_line_25:2:6: error: unknown type name 'TRootSnifferFull'
 new TRootSnifferFull("sniff");
     ^
Info in <THttpEngine::Create>: Starting HTTP server on port 8080
Aborted (core dumped)

I see no trace of the TRootSnifferFull header in my root distribution (6.18/04), but I see in the include path of ROOT, in module.modulemap:

module "TRootSnifferFull.h" { header "TRootSnifferFull.h" export * }

No idea what this means, though...

Please note that I had to modify setup.sh to be able to run. Indeed, in the instructions, we are told to install root with yum. But then, root is installed as a system package, and not in /opt/local/root. For instance, on my centos7 system, the root libraries are in /usr/lib64/lib and the headers in /usr/include/root. And there is no trace of the corresponding thisroot.sh

So I did this change in setup.sh:

 #ROOT
-#source /usr/local/bin/thisroot.sh
-source /opt/local/root/bin/thisroot.sh
-#export ROOTLIB=/usr/local/lib/root
-export ROOTLIB=/opt/local/root/lib
+# source /usr/local/bin/thisroot.sh
+# source /opt/local/root/bin/thisroot.sh
+# export ROOTLIB=/usr/local/lib/root
+# export ROOTLIB=/opt/local/root/lib

It could be related to the problem with TRootSnifferFull, but I don't know. I tried to play further with these environment variables to no avail. Does anybody have a version of setup.sh adapted to the ROOT install instructions in the README? Or do you actually install ROOT manually?

Thanks a lot in advance for any help.

Colin