Re: Can't locate object method "newFromJpeg" via package "GD::Image"
- From: "Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx>
- Date: Tue, 20 Dec 2005 22:39:44 +1100
"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
.
- References:
- Can't locate object method "newFromJpeg" via package "GD::Image"
- From: francescomoi
- Re: Can't locate object method "newFromJpeg" via package "GD::Image"
- From: Sisyphus
- Re: Can't locate object method "newFromJpeg" via package "GD::Image"
- From: Francesco Moi
- Can't locate object method "newFromJpeg" via package "GD::Image"
- Prev by Date: Re: Can't locate object method "newFromJpeg" via package "GD::Image"
- Next by Date: Re: Using XML::Twig
- Previous by thread: Re: Can't locate object method "newFromJpeg" via package "GD::Image"
- Next by thread: Using XML::Twig
- Index(es):
Relevant Pages
|
|