Hm, I used the following code:
use strict;
use Data::Dumper;
print Dumper([EMAIL PROTECTED]);
unshift @INC,
'/usr/local/slimserver/CPAN/arch/5.8.7/i486-linux-gnu-thread-multi';
unshift @INC,
'/usr/local/slimserver/CPAN/arch/5.8.7/i486-linux-gnu-thread-multi/auto';
unshift @INC, '/usr/local/slimserver/CPAN';
print Dumper([EMAIL PROTECTED]);
require GD;
print Dumper(\%INC);
my $image = GD::Image->new(100, 100,1);
$image->filledRectangle(0,0,100,100,0xff0000);
$image->filledRectangle(30,30,70,70,0x0000ff);
print "can jpeg\n" if GD::Image->can('jpeg');
print "can png\n" if GD::Image->can('png');
open (MYOUTFILE, ">test.jpg");
binmode MYOUTFILE;
print MYOUTFILE $image->jpeg();
close MYOUTFILE;
Which gives me the following error:
GD object version 2.23 does not match $GD::VERSION 2.30 at
/usr/lib/perl/5.8/DynaLoader.pm line 245.
Compilation failed in require at dump.pl line 12.
--
0xdeadbeef
------------------------------------------------------------------------
0xdeadbeef's Profile: http://forums.slimdevices.com/member.php?userid=2287
View this thread: http://forums.slimdevices.com/showthread.php?t=23206
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta