Error in root version v5-21-01-alice installation


I am trying to install root version v5-21-01-alice in macbook.
I am getting following error:

bin/rmkdepend -R -fnet/netx/src/TXNetFile.d -Y -w 1000 – -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -pthread -I/opt/alien/api/include/xrootd -Iproof/proofd/inc -DOLDXRCPHYCONN -DOLDXRDOUC -DOLDXRDLOCATE -DUSENEWHDRS -D__cplusplus – net/netx/src/TXNetFile.cxx
g++ -O2 -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -pthread -I/opt/alien/api/include/xrootd -Iproof/proofd/inc -DOLDXRCPHYCONN -DOLDXRDOUC -DOLDXRDLOCATE -DUSENEWHDRS -o net/netx/src/TXNetFile.o -c net/netx/src/TXNetFile.cxx
net/netx/src/TXNetFile.cxx:61:37: error: XrdOuc/XrdOucPthread.hh: No such file or directory
make: *** [net/netx/src/TXNetFile.o] Error 1

Could anyone please suggest some possible solution?

Thanks in advance

You are compiling ROOT with an inconsistent version of xrootd. You are wrongly taken an obsolete version in /opt/alien.
See with the Alice librarian.