Gossamer Forum
Quote Reply
GD.pm
I downloaded GD.pm version 2.32 from CPAN.
It contains
GD.pm
GD directory
Simple.pm
Image.pm
Polygon.pm
Polyline.pm

Also, I downloaded some required files:
CGI.pm
AutoLoader.pm
DynaLoader.pm
Exporter.pm
FileHandle.pm

When I excute GD.pm, I get an error.

Can't locate loadable object for module GD in @INC (@INC contains:
C:\CGI\ C:/Perl/lib C:/Perl/site/lib .) at C:\CGI\/GD/Image.pm line 4
Compilation failed in require at C:\CGI\/GD/Image.pm line 4.
BEGIN failed--compilation aborted at C:\CGI\/GD/Image.pm line 4.
Compilation failed in require at C:\CGI\GD.pm line 14.
BEGIN failed--compilation aborted at C:\CGI\GD.pm line 14.

Please tell me how to fix it.
Quote Reply
Re: [haruchan] GD.pm In reply to
Duplicate the directory structure in an appropriate location in @INC.

If GD.pm were at C:\CGI\GD.pm, it would at least change the error. You can also use the cpan program for retrieving modules from CPAN. (And it will put the files in the right locations for you.)

Last edited by:

mkp: Mar 28, 2006, 12:48 AM
Quote Reply
Re: [mkp] GD.pm In reply to
In Reply To:
Duplicate the directory structure in an appropriate location in @INC.

If GD.pm were at C:\CGI\GD.pm, it would at least change the error. You can also use the cpan program for retrieving modules from CPAN. (And it will put the files in the right locations for you.)
Error Message
Complication failed in require at C:\CGI\/GD/Image.pm line 4.
BEGIN failed--compilation aborted at C:\CGI\/GD/Image.pm line 4.
Compilation failed in require at C:\CGI\GD.pm line 14.
BEGIN failed--compilation aborted at C:\CGI\GD.pm line 14.

I could not find "@INC" inside of these files. So, I do not know how to duplicate the structure.

Sorry about my English;
In C:\CGI directory
GD.pm -- line 14 "use GD::Image;"
CGI.pm
AutoLoader.pm
DynaLoader.pm
Exporter.pm
FileHandle.pm

In C:\CGI\GD directory
Simple.pm
Image.pm -- "line 4 use GD;"
Polygon.pm
Polyline.pm

I am not sure what I should do with these, or need more files to fix this problem.
Please help me.


Quote Reply
Re: [haruchan] GD.pm In reply to
Hi,

to use 'ppm' to search and install GD and its dependencies from active perl's repository should work. Even on *nix, manually copy these files sometimes not work for me.

Hope that helps.

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [haruchan] GD.pm In reply to
In Reply To:

I could not find "@INC" inside of these files. So, I do not know how to duplicate the structure.



To see the contents of @INC, try this:
perl -e "print $_, $/ foreach @INC"


I recommend just doing:
cpan GD

and letting cpan handle everything for you. It really simplifies installation.

Last edited by:

mkp: Apr 4, 2006, 11:19 AM
Quote Reply
Re: [haruchan] GD.pm In reply to
PPM always worked for me and even if you are on Windows machine NMAKE is the alternative.


Thanks,
http://www.BigResource.com
Resource Center for 20,000 Perl/CGI, PHP, ASP and JAVA scripts