Readout.exe: error while loading libO2Monitoring.so

Dear O2 experts,
We are trying to run data taking from a stave setup.
We installed readout.exe using yum install readout, and the version is alisw-Readout+v1.0.6-1.x86_64.
While executing readout.exe file://xxx.cfg, we had an error:

/opt/alisw/el7/Readout/v1.0.6-1/bin/readout.exe: error while loading shared libraries: libO2Monitoring.so: cannot open shared object file: No such file or directory 

and checking with ldd, we found:

libO2Monitoring.so => not found

libs also not found were:

(base) [shiming@iftmikro0229602 bin]$ ldd readout.exe | grep not                                                                                                      
libO2Monitoring.so => not found                                                                                                                               
libConfiguration.so => not found                                                                                                                              
libFairMQ.so.1.4 => not found                                                                                                                                 
libOcc.so.0.10.0 => not found                                                                                                                                 
libboost_python36.so.1.70.0 => not found                                                                                                                      
libboost_filesystem.so.1.70.0 => not found                                                                                                                    
libboost_container.so.1.70.0 => not found                                                                                                                     
libboost_regex.so.1.70.0 => not found                                                                                                                         
libFairMQStateMachine.so.1.4 => not found                                                                                                                     
libFairMQTools.so.1.4 => not found                                                                                                                            
libFairLogger.so.1.5 => not found                                                                                                                             
libboost_program_options.so.1.70.0 => not found                                                                                                               
libgrpc++.so => not found                                                                                                                                     
libgrpc.so => not found                                                                                                                                       
libaddress_sorting.so => not found                                                                                                                            
libgpr.so => not found                                                                                                                                        
libprotobuf.so.3.7.1.0 => not found 

Please point us to the solutions to this error.
Thanks,
Shiming

Dear Shiming,

Please have a look at this page : https://gitlab.cern.ch/AliceO2Group/system-configuration/blob/master/ansible/docs/O2_INSTALL_FLP_STANDALONE.md

It explains how to install an FLP.
Cheers
Barth

Dear Barthélémy,
Thanks for the reply.
We finished installing with o2-install-flp-standalone just now, and readout.exe v1.0.5 was installed by ansible. But it is also not linked to libO2Monitoring:
./readout.exe: error while loading shared libraries: libO2Monitoring.so: cannot open shared object file: No such file or directory

Hi,
Have you been able to fix this issue ?
Best regards,
Barth

Hi,
No, it is not fixed.
I followed the link you provided, and the installation was successful.
But when trying to execute readout.exe, the loading shared library issue was still there.

should I run aliswmod or alienv to enter the flp-suite environment?

Hello Shiming,

to use readout, you should enter the proper environment with:
aliswmod enter Readout/v1.0.6-1

you can check what modules are loaded with:
aliswmod list

in particular, you will see that it loads Monitoring/v2.6.3-5
which provides the path to the missing libmonitoring and prevent the error you reported.

cheers,
sylvain

Hi Sylvain,
Thanks for your reply.
Now I have run aliswmod enter Readout/v1.0.6-1, and all the libs are loaded as shown below, but running readout.exe outputs bash: readout.exe: command not found...
How may I find the executable?
and I found that after running aliswmod enter Readout/v1.0.6-1, the python being used is still /bin/python, instead of /opt/alisw/el7/modulefiles/Python/v3.6.8-10.
please point me to any steps that I missed.

[shiming@iftmikro0229602 ~]$ aliswmod list
Currently Loaded Modulefiles:
1) BASE/1.0                           15) ReadoutCard/v0.11.11-3
2) GCC-Toolchain/v7.3.0-alice1-11  16) lz4/v1.8.3-4
3) libpng/v1.6.34-17               17) FairLogger/v1.5.0-2
4) libffi/v3.2.1-4                 18) ZeroMQ/v4.1.5-15
5) FreeType/v2.6-42                19) ofi/v1.7.1-2
6) Python/v3.6.8-10                20) asiofi/v0.3.1-30
7) boost/v1.70.0-5                 21) DDS/2.4-3
8) Monitoring/v2.6.3-5             22) FairMQ/v1.4.7-3
9) Ppconsul/0.1.0-30               23) protobuf/v3.7.1-5
10) Configuration/v2.2.1-30         24) c-ares/v1.15.0-3
11) Common-O2/v1.4.6-5              25) grpc/v1.19.1-6
12) libInfoLogger/v1.3.5-2          26) Control-OCCPlugin/v0.10.1-1
13) Python-modules/1.0-63           27) Readout/v1.0.6-1

We started a new bashrc, and now it works.

The aliswmod command should add it to your path.
can you please do “echo $PATH” ?

Please check that you don’t have something in your login scripts (.bash_profile, .bashrc) that overwrites PATH.

ok, all good then!