In case the automatic detection fails, one can use some different attemps to succeed configuration:
$ENV{PKG_CONFIG_PATH}
Prepend or append the path where your libstatgrab.pc resides
libstatgrab.pc
$ENV{libstatgrab_CFLAGS}
Set this to the CFLAGS suitable to compile against statgrab.h
statgrab.h
$ENV{libstatgrab_LIBS}
Set this to the LINKFLAGS suitable to link against libstatgrab.so
libstatgrab.so
To install Unix::Statgrab, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Unix::Statgrab
CPAN shell
perl -MCPAN -e shell install Unix::Statgrab
For more information on module installation, please visit the detailed CPAN module installation guide.