Re: How to get GIF support with Perl-GD library? (Can't locate object method "newFromGif")



On 06/05/2007 03:22 AM, Francesco Moi wrote:
Hi.

Using Perl v5.8.3 on Linux, I'm trying to install GD interface for
Perl (made by Lincoln Stein).
I installed GD, zlib, jpeg-6b and freetype from sources (the very last
versions).

When executing script, I get this error message:
-----
Can't locate object method "newFromGif" via package "GD::Image" at ./
test.pl line 6.
-------

Line 6:
------
$srcimage = GD::Image->newFromGif("myimage.gif");
------

I know GIF is not supported by official GD libraries, but is it
possible to get it via another way?

Thank you very much.


You didn't mention what Linux distribution you are using. I've installed Debian Sarge, and the "newFromGif" method exists on my system's GD. I installed the libgd-gd2-perl package.

.



Relevant Pages

  • Re: attempt to build 64 bit on Solaris fails
    ... > libraries needed to link with a 64-bit Tk. ... We were running a 32-bit version of Perl ... > Each section below is a summary of the commands used to install it. ...
    (comp.lang.perl.tk)
  • Re: attempt to build 64 bit on Solaris fails
    ... libraries needed to link with a 64-bit Tk. ... We were running a 32-bit version of Perl ... Each section below is a summary of the commands used to install it. ...
    (comp.lang.perl.tk)
  • Re: differences
    ... > What are respectively the difference with linux and windows installed on ... > different partitions and windows by itself perl on both machines has ... > perl modules and then install them. ...
    (comp.lang.perl.misc)
  • AW: Hello - Welcome
    ... Pick up a good perl book, or look into a perl cookbook. ... if it uses 'configure' you can usually set the install directory to ... bunch of linux libraries before you start. ... there a similar site for contributed AIX tools? ...
    (AIX-L)
  • Re: My Dilemma: Linux vs OSX
    ... e-mail, web news, Usenet, and perl programming. ... Hence, my interest in the Mac and OSX, and my dilemma. ... How many of you out there have made the switch from Linux to OSX, ... default install but is provided with the standard CD/DVD. ...
    (comp.sys.mac.system)