Hi.
I'm trying to execute this piece of code:
----------
#!/usr/bin/perl
use GD;
my $srcimage = GD::Image->newFromJpeg("/home/john/dog.jpg");
my ($srcW,$srcH) = $srcimage->getBounds();
--------------
And I get this message error:
---------------
Can't locate object method "newFromJpeg" via package "GD::Image" at test.pl line 3.
---------------
My configuration is made with the last versions of:
I had no problems to build GD-2.30:
[] perl Makefile.PL
---------
Checking if your kit is complete...
Looks good
Writing Makefile for GD
-----------
[] make
-------------------
Manifying blib/man1/bdf2gdfont.pl.1
Manifying blib/man3/GD:
olyline.3pm
Manifying blib/man3/GD::Image.3pm
Manifying blib/man3/GD::Simple.3pm
Manifying blib/man3/GD.3pm
Manifying blib/man3/GD:
olygon.3pm
--------------------
[] make test
---------------------
All tests successful, 3 subtests skipped.
Files=2, Tests=13, 1 wallclock secs ( 0.22 cusr + 0.03 csys = 0.25 CPU)
--------------------
[] make install
---------------------
Installing /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/GD/GD.so
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/GD/.packlistAppending installation info to /usr/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod
----------------------
What am I doing wrong? Thank you very much.
I'm trying to execute this piece of code:
----------
#!/usr/bin/perl
use GD;
my $srcimage = GD::Image->newFromJpeg("/home/john/dog.jpg");
my ($srcW,$srcH) = $srcimage->getBounds();
--------------
And I get this message error:
---------------
Can't locate object method "newFromJpeg" via package "GD::Image" at test.pl line 3.
---------------
My configuration is made with the last versions of:
I had no problems to build GD-2.30:
[] perl Makefile.PL
---------
Checking if your kit is complete...
Looks good
Writing Makefile for GD
-----------
[] make
-------------------
Manifying blib/man1/bdf2gdfont.pl.1
Manifying blib/man3/GD:
Manifying blib/man3/GD::Image.3pm
Manifying blib/man3/GD::Simple.3pm
Manifying blib/man3/GD.3pm
Manifying blib/man3/GD:
--------------------
[] make test
---------------------
All tests successful, 3 subtests skipped.
Files=2, Tests=13, 1 wallclock secs ( 0.22 cusr + 0.03 csys = 0.25 CPU)
--------------------
[] make install
---------------------
Installing /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/GD/GD.so
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/GD/.packlistAppending installation info to /usr/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod
----------------------
What am I doing wrong? Thank you very much.