How to resolve binmake.gmk error?

I am trying to generate Cosmic Ray Library and initially faced issues as in here. Though I dealt all of such errors, I am currently stalled with the error below.

Can someone please help me out? As I am getting I need to change my make file parameters but unable to understand where and what needs to be changed?

Using global libraries ...
Linking cosmic
/usr/bin/ld: cannot find -lXi
collect2: error: ld returned 1 exit status
make: *** [/home/Geant4/geant4.10.07.p02/config/binmake.gmk:416: /home/geant4_workdir/bin/Linux-g++/cosmic] Error 1

Thanks,