http://www.perlmonks.org?node_id=1147378


in reply to Installed CPAN Modules in Problematic Location

I have a Centos 7 VPS (OpenVZ) and a Centos 7 VM (in VMWare Workstation), both 64 bit. I checked @INC on both and got identical results:

@INC: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .

I use cpanminus to install modules. You can find that on the How to Install CPAN modules page. It doesn't require any setup.

Before you start deleting things, I think you should check @INC. You can do that by entering "perl -V" in a terminal. If that root location is in @INC, I think you'll have to remove it from there before you delete anything.

Of course, Centos recommends that you use their repos to install modules but you've probably installed your own perl so you don't want to do that?

I hope this is at least a little help.