To solve this problem:
Can't locate File/Which.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) BEGIN failed--compilation aborted
you just need to install perl-File-Which package:
yum install perl-File-Which