@INC possibly misconfigured?

Posted by vacao on 2009-04-23 06:37

I'm investigating a script that has been breaking for a while -- if it ever ran. It fails with the following message:

Can't locate strict.pm in @INC (@INC contains: C:/Program Files/OmniBack/lib .) at onyx_order_synchronization.pl line 28.

The thing that confuses me is that there is almost nothing in @INC. I thought the standard perl library directories would show up there (which would include strict.pm).

Should I be seeing the standard library directories here? If so, how do I fix the configuration?

vacao | Thu, 2009-04-23 07:33

Found my problem. There were 2 perl installations on the box, and it was pulling the one in the referenced OmniBack folder instead of the on in c:\perl. The OmniBack install apparently does not include many of the standard libraries.

I put the standard perl install at the front of the system path before running and violà! We're golden.