CRON job "Can't locate CGI.pm in @INC"

Web hosting discussion, programming, and shared and dedicated servers.
1 post Page 1 of 1
by sheerio » Sun Dec 02, 2018 5:43 pm
Hi.

I have a CGI script on my site that works fine when I run it from my browser, but when I try to launch it from a CRON job I get the message, "Can't locate CGI.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .)"

From what I learned by Googling this message, the simplest way to solve this problem would be to include in my perl file a link to the CGI.pm module. So, where is this module stored? And what's the best way to inform CRON where to find it?

Patiently awaiting your help....
1 post Page 1 of 1

Who is online

In total there are 25 users online :: 0 registered, 0 hidden and 25 guests (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: No registered users and 25 guests