Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to get GIF support with Perl-GD library? (Can't locate object method "newFromGif") Francesco Moi 06-05-2007
Posted by Gunnar Hjalmarsson on June 5, 2007, 11:22 am
Please log in for more thread options


Francesco Moi wrote:
> 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.

What happens if you run:

perl -e 'use GD; print GD->VERSION'

The error message indicates that your version of the Perl GD interface
is too old (< 2.15) to work with GIF. In that case, upgrade GD.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Posted by Francesco Moi on June 14, 2007, 12:31 pm
Please log in for more thread options


> What happens if you run:
>
> perl -e 'use GD; print GD->VERSION'
>
> The error message indicates that your version of the Perl GD interface
> is too old (< 2.15) to work with GIF. In that case, upgrade GD.

[root@pc]# perl -e 'use GD; print GD->VERSION'
2.35

I think it's the very last version, isn't it?


Similar ThreadsPosted
Can't locate object method "ymd" via package... August 3, 2007, 6:14 am
Pg.pm Question - Can't locate object method driver October 31, 2004, 9:17 pm
Can't locate object method "new" via package "Net::SMTP" November 2, 2004, 6:36 pm
GD::Image: Can't locate object method "newFromJpeg" April 1, 2005, 2:51 am
Tk::Browser, "Can't locate object method 'Construct'" January 16, 2008, 4:47 am
Can't locate object method "blocking" via package "IO::Handle" June 20, 2005, 8:38 am
Can't locate object method "newFromJpeg" via package "GD::Image" December 19, 2005, 3:03 am
ant locate object method _session_channel via package Net::SSH::Perl::SSH1 July 13, 2006, 6:05 pm
Cant locate object method _session_channel via package Net::SSH::Perl::SSH1 July 13, 2006, 6:15 pm
Can't locate loadable object August 4, 2005, 12:18 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap