Article ID: 1746, created on Mar 16, 2007, last review on May 11, 2014

  • Applies to:
  • Plesk for Linux/Unix


The error:

    Can't locate PATH/ in
    @INC (@INC contains: ../lib
    /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3

can be seen in Apache error_log, maillog or as console output after some Perl script, that requires missing modules, execution.


Such error mean that some required by the Perl script module is not installed in the system or not located in the paths listed in @INC variable.



If the module exists, but is not located in the paths that are listed in @INC that can be got with:

# perl -e 'print join "\n", @INC, "\n";'


You should place the module somewhere into the paths you got with the command above, or use the following statement in your Perl script:

     use lib "/Path/To/The/Module";

It will add  "/Path/To/The/Module" into @INC variable when the script is executed.


The missing module should be installed. It can be done by means of the OS packet manager (yum, apt, yast, ports) if such module exists in the distributive. Or you can install it by means of Perl from CPAN, like:

#perl -MCPAN -e shell
cpan> install PATH::MODULE_NAME

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF