From owner-freebsd-perl@FreeBSD.ORG Thu Jun 4 20:21:37 2009 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14633106564A for ; Thu, 4 Jun 2009 20:21:37 +0000 (UTC) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [194.255.56.42]) by mx1.freebsd.org (Postfix) with ESMTP id D29EB8FC13 for ; Thu, 4 Jun 2009 20:21:36 +0000 (UTC) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id 2EFAC6D401; Thu, 4 Jun 2009 22:05:21 +0200 (CEST) Date: Thu, 4 Jun 2009 22:05:21 +0200 From: Anton Berezin To: Demonjack Message-ID: <20090604200521.GA84861@heechee.tobez.org> References: <23876448.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23876448.post@talk.nabble.com> X-Powered-By: FreeBSD http://www.freebsd.org/ User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-perl@freebsd.org Subject: Re: GD::Image Can't locate object newFromPng X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 20:21:37 -0000 On Thu, Jun 04, 2009 at 12:41:24PM -0700, Demonjack wrote: > > FreeBSD 7.0 > Perl 5.8.9 > > I installed... > > libpng-1.2.36 > gd-2.0.35 > GD-2.41 > > I made sure all compiled with PNG support. However, whenever I try and run > the following line of code. > > my $myImage = newFromPng GD::Image(\*PNG); or alternatively.... > my $myImage = GD::Image->newFromPng($imgFile, 1) > > I get the following error. > > Can't located object method "newFromPng" via package "GD::Image" at blah > blah blah. > > I'm sure it's something I've missed but I can't find it. At this point I've > looked at it so much I can't see the forest for the trees....... > > Any help would be appreciated. I'm going to go take a nap. Works fine here. Can you post a complete script that exhibits the problem? Cheers, \Anton. -- There is no beauty in entropy. -- Eliezer Yudkowsky