Can't locate ... in @INC

When I run my script from the browser (the option in optiperl) I get this:

Can 't locate /home/userme/public_html/cgi-bin/webbbs512t/ in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at line 1.

I thought that it would recognize the remote path (/home/userme/) in my script and equate it to what I specified as the local path (C:\mysite\)...

The fact that the script you are running knows the exact path /home/userme/public_html/cgi-bin/webbbs512t/ to complain that it cannot be found, means that you have hard-coded the paths. Have you used something like:

use lib ('/home/userme/public_html/cgi-bin/webbbs512t') in the script?

Try changing to
use lib ('./webbbs512t');

if you are running the script from /cgi-bin/ (and not one of it's subfolders).

Other than that your settings look correct.

The use of subst would be necessary, if there is no other way to use relative paths, and you must use absolute paths.

This would require that you copy all files locally under:


then subst c:\mysite to z:

Internal server root path would be changed to


see the help file under advanced issues / Using absolute paths for more information.

17.06.2006. 22:54

This article hasn't been commented yet.

Write a comment




5 + 6 =