PERL GD for RHLinux 64 bit 2006-10-01 - By Nair, Murlidharan T
Back I am interested in the GD package for the 64 bit version of Linux. Can anyone tell which is ppm file that I need to install? Tried installing the following perl-GD-2.30-1.2.el4.rf.x86_64.rpm but it gives me the following warning warning: perl-GD-2.30-1.2.el4.rf.x86_64.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6 I still tried to compile a sample program but it does not seem happy. It gave me the following error at compile time Can't locate object method "png" via package "GD::Image" at sample_gd.pl line 31. #!/usr/bin/perl 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;
I need to get this up and running pretty soon. So if anyone can throw some light into what I need to do that will really help. Cheers ../Murli
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Redhat-install-list mailing list Redhat-install-list@(protected) https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request@(protected) Subject: unsubscribe
|
|