Problem in installing O2

Dear Experts,

We are trying to install O2 not on local machine but at TPC cluster/grid and are facing the following errors:

Scanning dependencies of target hsimple
[100%] Generating tutorials/hsimple.root
bin/sh: LD_LIBRARY_PATH=/home/zyasin/alice/sw/BUILD/9b61f1a1a4dcdd54dadb34ac8b6c61dcf9e83893/ROOT/lib:/home/zyasin/alice/sw/slc7_x86-64/OpenSSL/v1.0.2o-1/lib:/home/zyasin/alice/sw/slc7_x86-64/libxml2/v2.9.3-1/lib:/home/zyasin/alice/sw/slc7_x86-64/GSL/v1.16-1/lib:/home/zyasin/alice/sw/slc7_x86-64/arrow/v0.12.0-alice6-1/lib:/home/zyasin/alice/sw/slc7_x86-64/flatbuffers/v1.10.0-1/lib:/home/zyasin/alice/sw/slc7_x86-64/zlib/v1.2.8-1/lib:/home/zyasin/alice/sw/slc7_x86-64/RapidJSON/091de040edb3355dcf2f4a18c425aec51b906f08-1/lib:/home/zyasin/alice/sw/slc7_x86-64/lz4/v1.8.3-1/lib:/home/zyasin/alice/sw/slc7_x86-64/boost/v1.68.0-1/lib:/home/zyasin/alice/sw/slc7_x86-64/lzma/v5.2.3-1/lib:/home/zyasin/alice/sw/slc7_x86-64/Python-modules/1.0-1/lib:/home/zyasin/alice/sw/slc7_x86-64/Python/v3.6.8-1/lib:/home/zyasin/alice/sw/slc7_x86-64/libffi/v3.2.1-1/lib:/home/zyasin/alice/sw/slc7_x86-64/libffi/v3.2.1-1/lib64:/home/zyasin/alice/sw/slc7_x86-64/sqlite/v3.15.0-1/lib:/home/zyasin/alice/sw/slc7_x86-64/libpng/v1.6.34-1/lib:/home/zyasin/alice/sw/slc7_x86-64/CMake/v3.13.1-1/lib:/home/zyasin/alice/sw/slc7_x86-64/FreeType/v2.6-1/lib:/home/zyasin/alice/sw/slc7_x86-64/GCC-Toolchain/v7.3.0-alice1-1/lib:/home/zyasin/alice/sw/slc7_x86-64/GCC-Toolchain/v7.3.0-alice1-1/lib64:/home/zyasin/alice/sw/slc7_x86-64/autotools/v1.5.0-1/lib:/home/zyasin/alice/sw/slc7_x86-64/defaults-release/v1-1/lib:/opt/cactus/lib:/opt/ctp/ctp3-ipbus/lib64:/opt/ctp/ctp3-ipbus/cwrap/lib:/opt/cactus/lib:$LD_LIBRARY_PATH: No such file or directory
gmake[2]: *** [tutorials/hsimple.root] Error 127
gmake[1]: *** [CMakeFiles/hsimple.dir/all] Error 2
gmake: *** [all] Error 2

or

Scanning dependencies of target hsimple
[ 98%] Generating tutorials/hsimple.root
/bin/sh: LD_LIBRARY_PATH=/home/zyasin/alice/sw/BUILD/9b61f1a1a4dcdd54dadb34ac8b6c61dcf9e83893/ROOT/lib:/home/zyasin/alice/sw/slc7_x86-64/OpenSSL/v1.0.2o-1/lib:/home/zyasin/alice/sw/slc7_x86-64/libxml2/v2.9.3-1/lib:/home/zyasin/alice/sw/slc7_x86-64/GSL/v1.16-1/lib:/home/zyasin/alice/sw/slc7_x86-64/arrow/v0.12.0-alice6-1/lib:/home/zyasin/alice/sw/slc7_x86-64/flatbuffers/v1.10.0-1/lib:/home/zyasin/alice/sw/slc7_x86-64/zlib/v1.2.8-1/lib:/home/zyasin/alice/sw/slc7_x86-64/RapidJSON/091de040edb3355dcf2f4a18c425aec51b906f08-1/lib:/home/zyasin/alice/sw/slc7_x86-64/lz4/v1.8.3-1/lib:/home/zyasin/alice/sw/slc7_x86-64/boost/v1.68.0-1/lib:/home/zyasin/alice/sw/slc7_x86-64/lzma/v5.2.3-1/lib:/home/zyasin/alice/sw/slc7_x86-64/Python-modules/1.0-1/lib:/home/zyasin/alice/sw/slc7_x86-64/Python/v3.6.8-1/lib:/home/zyasin/alice/sw/slc7_x86-64/libffi/v3.2.1-1/lib:/home/zyasin/alice/sw/slc7_x86-64/libffi/v3.2.1-1/lib64:/home/zyasin/alice/sw/slc7_x86-64/sqlite/v3.15.0-1/lib:/home/zyasin/alice/sw/slc7_x86-64/libpng/v1.6.34-1/lib:/home/zyasin/alice/sw/slc7_x86-64/CMake/v3.13.1-1/lib:/home/zyasin/alice/sw/slc7_x86-64/FreeType/v2.6-1/lib:/home/zyasin/alice/sw/slc7_x86-64/GCC-Toolchain/v7.3.0-alice1-1/lib:/home/zyasin/alice/sw/slc7_x86-64/GCC-Toolchain/v7.3.0-alice1-1/lib64:/home/zyasin/alice/sw/slc7_x86-64/autotools/v1.5.0-1/lib:/home/zyasin/alice/sw/slc7_x86-64/defaults-release/v1-1/lib:/opt/cactus/lib:/opt/ctp/ctp3-ipbus/lib64:/opt/ctp/ctp3-ipbus/cwrap/lib:/opt/cactus/lib:$LD_LIBRARY_PATH: No such file or directory
gmake[2]: *** [tutorials/hsimple.root] Error 127
gmake[1]: *** [CMakeFiles/hsimple.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs…
[ 98%] Built target HistFactory
gmake: *** [all] Error 2

Any help please?

Kind regards,
Zafar