> Hi,
> 
> I'm trying to use GD.pm on a RedHat 9.0 Linux machine in a Perl script. 
> When the script is executed, it drops out with the message:
> 
>   Can't locate GD.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi 
>   /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi 
>   /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl 
>   /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 
>   /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi 
>   /usr/lib/perl5/5.8.0) at ./loads.cgi line 6.
>   BEGIN failed--compilation aborted at ./loads.cgi line 6.
> 
> The beginning of this script:
> 
>   #!/usr/bin/perl -wT
> 
>   use strict;
> 
>   use CGI;
>   use GD;
> 
> Line 6 is 'use GD;'
> 
> What does this mean? 
> 
> I check that the gd rpm is installed with 'rpm -qa | grep gd' with the
result:
> 
>   gd-devel-1.8.4-11
>   gd-1.8.4-11
> 
> Any ideas for a very new user?
> 

I *believe* that the rpms listed above are for the GD C libraries, the
error you are getting refers to the GD Perl module (which is likely a
wrapper around the C libs though I can't say for sure).  You should be
able to do the normal:

perl -MCPAN -e shell
> install GD

Assuming you have root access, want your modules installed in the normal
locations, have the proper C compiling libs and programs, etc. etc. etc.

If this doesn't work then come back for a second round...

http://danconia.org



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to