I am trying to install Perl from source (because my server isn't conected to internet), and while doing 'make install' .. it stops at:Can't locate DWIM.pm in @INC (you may need to install the DWIM module) (@INC contains: lib dist/Exporter/lib .).BEGIN failed--compilation aborted.Note: I have DWIM perl installed previously.Now when I do [root@ctl perl-5.22.2]# perl -e print \@INC\/opt/dwimperl-linux-5.20.1-10-x86_64/perl/lib/site_perl/5.20.1/x86_64-linux /opt/dwimperl-linux-5.20.1-10-x86_64/perl/lib/site_perl/5.20.1 /opt/dwimperl-linux-5.20.1-10-x86_64/perl/lib/5.20.1/x86_64-linux /opt/dwimperl-linux-5.20.1-10-x86_64/perl/lib/5.20.1and the DWIM file is located at [root@ctl perl-5.22.2]# find / -name DWIM.pm/opt/dwimperl-linux-5.20.1-10-x86_64/perl/lib/site_perl/5.20.1/DWIM.pmWhat I want is how can I modify the @INC generally in perl so that it finds DWIM.pm ?
How to modify @INC in Perl
perl
You can do it by adding its path to the PERL5LIB environment variable :export PERL5LIB=/opt/dwimperl-linux-5.20.1-10-x86_64/perl/lib/site_perl/5.20.1