ShopSite Knowledgebase

store isn't updating, error is "Can't locate in @INC at ./regen.cgi"

ShopSite: Store isn't updating, error is "Can't locate in
@INC at ./regen.cgi.."

When updating your store, you either get an error like this:

Can't locate in @INC at ./regen.cgi line 7. BEGIN
failed,compilation aborted at ./regen.cgi line 7.

Other symptoms may be that the publish process stops or you get an Internal Server Error
and the error in the web server error log is the one above.

NOTE: If the error message gives the perl module "" or "" as the one that
cannot be located, this solution does not apply. Please see S02564.
Solution ID: S03712

This problem is due to the current directory "." not being included in @INC. @INC is an array of directories that perl looks in for include files. There are three ways to fix this problem:

1. Reinstall perl and make sure that the current directory is included in @INC.

2. Modify the require lines of all ShopSite perl scripts* to specify that the files reside in the
current directory. For example, in regen.cgi you would change these lines:

require "";
require "";
require "";
require "";

to say this:

require "./";
require "./";
require "./";
require "./";

3. Add the following line to the beginning of all ShopSite perl scripts*. This adds the current directory to @INC for that script:

push(@INC, ".");

This line must come before your "require" statements.

* "All ShopSite perl scripts" are:


Related Articles

No related articles were found.


No attachments were found.

Visitor Comments

Article Details

Last Updated
13th of November, 2008

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions

How would you rate this answer?

Thank you for rating this answer.