Apologize if this is the wrong forum. I have an older perl script that has been running fine until awhile ago when I noticed this error:
I've looked inside the captcha.pl at line 42 and admin/db_utils.pl at line 629 but can't see anything to point me in the right direction.
path in add.cgi is the same as db_utils.pl
Looked in the usr/local and usr/lib64 and usr/share folders/files and confirm that GD isn't there.
So I thought maybe GD was missing from the server but it is there.
I am not too familiar with perl so I thought I'd reach out here to someone who may be able to give me some direction on where I should be looking.
Here are my server details:
CENTOS 7.9
cPanel V94.0.4
Apache Version 2.4.46
PHP Version PHP 5.6 ( ea-php56 )
MySQL Version 5.7.33
Architecture x86_64
Operating System linux
Path to Perl /usr/bin/perl
Perl Version 5.16.3
Kernel Version 3.10.0-1127.18.2.el7.x86_64
I've been researching this error for days and have yet to find an explanation or solution to my problem.fatal error: Can't locate GD.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 .) at admin/captcha/captcha.pl line 42.
BEGIN failed--compilation aborted at admin/captcha/captcha.pl line 42.
Compilation failed in require at /home/mywebsite/public_html/links/cgi-bin/admin/db_utils.pl line 629.
I've looked inside the captcha.pl at line 42 and admin/db_utils.pl at line 629 but can't see anything to point me in the right direction.
Code:
//line 42
use GD;
Code:
//line 629
require "admin/captcha/captcha.pl"; # This should be the path from add.cgi
Looked in the usr/local and usr/lib64 and usr/share folders/files and confirm that GD isn't there.
So I thought maybe GD was missing from the server but it is there.
I've also installed ImageMagick to see if that would fix it but still the same.# php -i | grep 'GD\|ImageMagick'
GD Support => enabled
GD Version => bundled (2.1.0 compatible)
I am not too familiar with perl so I thought I'd reach out here to someone who may be able to give me some direction on where I should be looking.
Here are my server details:
CENTOS 7.9
cPanel V94.0.4
Apache Version 2.4.46
PHP Version PHP 5.6 ( ea-php56 )
MySQL Version 5.7.33
Architecture x86_64
Operating System linux
Path to Perl /usr/bin/perl
Perl Version 5.16.3
Kernel Version 3.10.0-1127.18.2.el7.x86_64
Last edited by a moderator: