Re: Can't locate object method "newFromJpeg" via package "GD::Image"




"Francesco Moi" <franscescomoi@xxxxxxx>

> >
> > #!/usr/bin/perl
> > use GD;
> > print $GD::VERSION, "\n";
> > __END__
>
> Yes, I'm using 2.30.
> How can I check if I've got other versions of GD installed? It may be,
> cause I've
> been doing several tests with several versions.

If the above script is reporting '2.30' then that's the version of GD that's
being found.

I just installed version 2.30 on my Win32 box and the script you posted
still works fine. However, I found that if I build GD-2.30 *without* jpeg
support, then I get an error very similar to yours when I run the script you
originally posted. I get:

Can't locate object method "_newFromJpeg" via package "GD::Image" at
D:/perl58_M/site/5.8.7/lib/GD/Image.pm line 185.

Essentially there are 2 differences:
1) for me, the object method "_newFromJpeg" is not found, whereas your error
reported that the object method "newFromJpeg" is not found;
2) my error is reported in Image.pm, whereas yours was reported in the
script.

I'm starting to think that, although you *think* your GD-2.30 was built with
jpeg support, perhaps it wasn't. However, when I look at the output you
posted originally, it looks to me that your GD-2.30 *was* built with jpeg
support.

Did you specify 'y' at all of the prompts when 'perl Makefile.PL' was run ?
It might be informative to find out which subtests were skipped. Try
running:

perl -Mblib t\GD.t

and:

perl -Mblib t\Polyline.t

However .... basically, I'm stumped by this - and am hoping that someone
that actually *knows* what has gone wrong comes forward :-)

Perhaps Google will turn up an answer for you .... or you might have to
contact the author if all else fails.

Cheers,
Rob


.



Relevant Pages

  • Re: Microsoft - Windows XP SP1 DX9.00 is not reporting KB839643 via WMI
    ... > It's not even really a 'custom' script in how it pulls the information. ... and this hotfix (unlike all other DX hotfixes) is ... > reporting their hotfixes via WMI, and now this one doesn't work as the ... >> like to submit a request for support using your phone, ...
    (microsoft.public.windowsupdate)
  • =?ISO-8859-1?Q?New_System_Command_Script_Facility?=
    ... I'm currently finished writing a new replacement command script processor ... (at least that RACF thinks so, and better support for non-RACF sites). ... The IF-type commands now have ELSE processing ... non-scroll highlighted console message and BEEP until a specific JOB or TASK ...
    (bit.listserv.ibm-main)
  • Re: Selecting Multivalues
    ... building lists that can then be used for reporting. ... If it's not on the menu then call support. ... multivalues don't work. ... the much touted multivalued "strength" turns out to be ...
    (comp.databases.pick)
  • Re: [msh] Some msh setup questions
    ... [msh] Some msh setup questions ... > Is there, is there going to be, support for Msh on Itanium. ... These are the current languages that we plan to localize to when we ship ... > What about support for Arabic script? ...
    (microsoft.public.windows.server.scripting)
  • Re: we believe them, then we really transfer Jay and Atiqullahs usual collar
    ... They are reporting in accordance with fatal, in spite of private, ... The ban above the regular game is the provider that alleges ... Edward's fantasy lands other than our part after we serve in support of it. ... unless Hakeem situates moneys over Saad's ...
    (sci.crypt)