O2 build problems with XRootD in ubuntu 22.04

Hi All,

I am having some build errors related to XRootD in ubuntu 22.04, an excerpt of the log is linked below and the full log can be found here: https://cernbox.cern.ch/s/qWlUNEpGPChQSOO! Please let me know of any advice you have!

2023-01-10@22:04:54:DEBUG:O2:XRootD:alice-o2: ++ case $ARCHITECTURE in
2023-01-10@22:04:54:DEBUG:O2:XRootD:alice-o2: ++ echo -ne '>>>>>> Found XRootD python bindings: ’
2023-01-10@22:04:54:DEBUG:O2:XRootD:alice-o2: >>>>>> Found XRootD python bindings: ++ LD_LIBRARY_PATH=/software/hannah/alice/sw/INSTALLROOT/5a7cfa4d3beb77b4be2d76d95dba9ba7
40a3c301/ubuntu2204_x86-64/XRootD/v5.5.0-local1/lib:/software/hannah/alice/sw/ubuntu2204_x86-64/AliEn-Runtime/v2-19-le-local2/lib:/software/hannah/alice/sw/ubuntu2204_x86-64/
UUID/v2.27.1-local2/lib:/software/hannah/alice/sw/ubuntu2204_x86-64/ApMon-CPP/v2.2.8-alice5-local1/lib:/software/hannah/alice/sw/ubuntu2204_x86-64/libtirpc/libtirpc-1-1-4-loc
al1/lib:/software/hannah/alice/sw/ubuntu2204_x86-64/AliEn-CAs/v1-local2/lib:/software/hannah/alice/sw/ubuntu2204_x86-64/Python-modules/1.0-local2/lib:/software/hannah/alice/s
w/ubuntu2204_x86-64/Python-modules-list/1.0-local2/lib:/software/hannah/alice/sw/ubuntu2204_x86-64/curl/7.70.0-local1/lib:/software/hannah/alice/sw/ubuntu2204_x86-64/CMake/v3
.23.1-local1/lib:/software/hannah/alice/sw/ubuntu2204_x86-64/alibuild-recipe-tools/0.2.3-local1/lib:/software/hannah/alice/sw/ubuntu2204_x86-64/defaults-release/v1-local1/lib
2023-01-10@22:04:54:DEBUG:O2:XRootD:alice-o2: ++ PYTHONPATH=/software/hannah/alice/sw/INSTALLROOT/5a7cfa4d3beb77b4be2d76d95dba9ba740a3c301/ubuntu2204_x86-64/XRootD/v5.5.0-loc
al1/lib/python/site-packages:/software/hannah/alice/sw/ubuntu2204_x86-64/Python-modules/1.0-local2/share/python-modules/lib/python/site-packages
2023-01-10@22:04:54:DEBUG:O2:XRootD:alice-o2: ++ /usr/bin/python3 -c ‘from XRootD import client as xrd_client;print(f"{xrd_client.version}\n{xrd_client.file}");’
2023-01-10@22:04:54:DEBUG:O2:XRootD:alice-o2: Traceback (most recent call last):
2023-01-10@22:04:54:DEBUG:O2:XRootD:alice-o2: File “”, line 1, in
2023-01-10@22:04:54:DEBUG:O2:XRootD:alice-o2: ModuleNotFoundError: No module named ‘XRootD’

Cheers,

Hannah

your error comes from this: No package 'json-c' found
install libjson-c-dev package and try again

Thank you for the solution! In the end, I solved the issue by removing “-p” from the build command!

@hbossi Could you please elaborate on -p ? what build command use -p? I’m interested to know, to have this knowledge for other cases…