Jon (and others):
Thanks for your help thus far!

I'm running Apache 2.0.46 on Win2003 Server.

Since I get the error messages below when I try to run the sample program
(also below) on Apache HTTPD to demonstrate GD, I am now trying to manually
install GD.

I have just reinstalled ActiveState Perl v5.8+ and the error messages below
lead me to believe GD is not installed by default.

I have tried to use PPM and ppm3.bat to install GD but neither of these
worked either. When I type "install GD" I get the message "Error: no
suitable installation target found for package GD".

So now I want to manually install GD now that I have the URL. I have typed
c:\Perl\bin\perl.exe Makefile.PL and I see the message 

"'gdlib-config' is not recognized as an internal or external command,
operable program or batch file."

 and it is asking me where libgd is installed. The default is /usr/lib.
Hmmm... I'm running windows, now U*X. Where do I get libgd?

What the heck does this mean? What is gdlib-config?

While GD is optional for bugzilla, the bugzilla checksetup.pl program dies
when it tries to check for the existence of GD.

Thanks,
Siegfried

[Wed Dec 01 23:38:54 2004] [error] [client 127.0.0.1] Can't load
'C:/Perl/site/lib/auto/GD/GD.dll' for module GD: load_file:The specified
module could not be found at C:/Perl/lib/DynaLoader.pm line 230.\r
[Wed Dec 01 23:38:55 2004] [error] [client 127.0.0.1]  at C:/Program
Files/Apache Group/Apache2/cgi-bin/test/gd-test.pl line 3\r
[Wed Dec 01 23:38:55 2004] [error] [client 127.0.0.1] Compilation failed in
require at C:/Program Files/Apache Group/Apache2/cgi-bin/test/gd-test.pl
line 3.\r
[Wed Dec 01 23:38:55 2004] [error] [client 127.0.0.1] BEGIN
failed--compilation aborted at C:/Program Files/Apache
Group/Apache2/cgi-bin/test/gd-test.pl line 3.\r

Here is the test program I'm trying to run -- straight from the web page:
#!c:/Perl/bin/Perl.exe

use GD;

# create a new image
$im = new GD::Image(100,100);

# allocate some colors
$white = $im->colorAllocate(255,255,255);
$black = $im->colorAllocate(0,0,0);       
$red = $im->colorAllocate(255,0,0);      
$blue = $im->colorAllocate(0,0,255);

# make the background transparent and interlaced
$im->transparent($white);
$im->interlaced('true');

# Put a black frame around the picture
$im->rectangle(0,0,99,99,$black);

# Draw a blue oval
$im->arc(50,50,95,75,0,360,$blue);

# And fill it with red
$im->fill(50,50,$red);

# make sure we are writing to a binary stream
binmode STDOUT;

# Convert the image to PNG and print it on standard output
print $im->png;




-----Original Message-----
From: Jonathan Paton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 30, 2004 10:25 AM
To: [EMAIL PROTECTED]
Subject: Re: How to install GD for bugzilla

Dear Siegfried,

Are you using ActiveState's version of perl?  If so, there is a custom
installer for CPAN modules.  It is called PPM.  You might have an
easier time using that.

If not, you can download the files from http://search.cpan.org/~lds/GD-2.19/

>From the README:

6. Does GD run with Win32 Perl?

   The latest ActiveState binaries for Win32 systems come with GD
   already compiled in and ready to go. I don't own any Win32 systems,
   and cannot provide you with help in compiling GD from scratch on such 
   systems.

So looks like manual installation is the order of the day, if you
aren't using ActivePerl.

Jonathan Paton

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to