perl's @INC has non-existent directories in it

Programming languages, Coding, executables, and scripting.
Post Reply
Message
Author
Lady Aleena
Posts: 20
Joined: 2013-12-06 07:48

perl's @INC has non-existent directories in it

#1 Post by Lady Aleena »

I was running "cpan -l" when I saw errors about directories not existing. So I doubled checked.

Code: Select all

me@office:~$ perl -e 'print "$_\n" for sort @INC'
.
/etc/perl
/home/me/Documents/fantasy/files/lib
/home/me/perl5/lib/perl5
/home/me/perl5/lib/perl5/5.20.0
/home/me/perl5/lib/perl5/5.20.2
/home/me/perl5/lib/perl5/5.20.2/x86_64-linux-gnu-thread-multi
/home/me/perl5/lib/perl5/x86_64-linux-gnu-thread-multi
/usr/lib/x86_64-linux-gnu/perl/5.20
/usr/lib/x86_64-linux-gnu/perl5/5.20
/usr/local/lib/site_perl
/usr/local/lib/x86_64-linux-gnu/perl/5.20.2
/usr/local/share/perl/5.20.2
/usr/share/perl/5.20
/usr/share/perl5
me@office:~$ cd /home/me/perl5/lib/perl5
me@office:~/perl5/lib/perl5$ cd /home/me/perl5/lib/perl5/5.20.0
me@office:~/perl5/lib/perl5/5.20.0$ cd /home/me/perl5/lib/perl5/5.20.2
me@office:~/perl5/lib/perl5/5.20.2$ cd /home/me/perl5/lib/perl5/5.20.2/x86_64-linux-gnu-thread-multi/
me@office:~/perl5/lib/perl5/5.20.2/x86_64-linux-gnu-thread-multi$ cd /home/me/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/
me@office:~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi$ cd /usr/lib/x86_64-linux-gnu/perl/5.20
me@office:/usr/lib/x86_64-linux-gnu/perl/5.20$ cd /usr/lib/x86_64-linux-gnu/perl5/5.20
me@office:/usr/lib/x86_64-linux-gnu/perl5/5.20$ cd /usr/local/lib/site_perl
bash: cd: /usr/local/lib/site_perl: No such file or directory
me@office:/usr/lib/x86_64-linux-gnu/perl5/5.20$ cd /usr/local/lib/x86_64-linux-gnu/perl/5.20.2
bash: cd: /usr/local/lib/x86_64-linux-gnu/perl/5.20.2: No such file or directory
me@office:/usr/lib/x86_64-linux-gnu/perl5/5.20$ cd /usr/local/share/perl/5.20.2
bash: cd: /usr/local/share/perl/5.20.2: No such file or directory
me@office:/usr/lib/x86_64-linux-gnu/perl5/5.20$ cd /usr/share/perl/5.20
me@office:/usr/share/perl/5.20$ cd /usr/share/perl5
me@office:/usr/share/perl5$ cd
me@office:~$ 
Where are those non-existent directories referenced so I can run things without errors about directories not existing like the following?

Code: Select all

me@office:~$ cpan -l > $HOME/Documents/fantasy/files/data/admin/local_modules.txt
Can't stat /usr/local/lib/x86_64-linux-gnu/perl/5.20.2: No such file or directory
 at /usr/share/perl/5.20/App/Cpan.pm line 1234.
Can't stat /usr/local/share/perl/5.20.2: No such file or directory
 at /usr/share/perl/5.20/App/Cpan.pm line 1234.
Can't stat /usr/local/lib/site_perl: No such file or directory
 at /usr/share/perl/5.20/App/Cpan.pm line 1234.

Post Reply