Can't locate object method BINMODE via package Apache

2000-04-11 Thread Roca, Ignasi

I'm using mod_perl-1.21 and testing GD-1.25.

When calling any of the demos examples given by GD-1.25 I have the error

"Can't locate object method BINMODE via package Apache".

The perl scripts are as follows:

#!/usr/local/bin/perl
use GD;
print "Content-type: image/png\n\n"
$im = new GD::Image(100,50);
...
binmode STDOUT;
# print the image to stdout
print $im-png;


Is somebody knowing the reason of the error ? 

-- Ignasi Roca



Static linking of GD module

2000-04-04 Thread Roca, Ignasi

Hi,

I prepared a perl5 binary with the GD.pm, the perl5 interface to Thomas
Boutell's gd library, linked static.

From the browser, that means via mod_perl, I request a perl-script
'fills.pl' that requires the GD package, following error is output in the
error_log:

[error] DYNA:Can't load module GD, dynamic loading not available in this
perl.
  (You may need to build a new perl executable which either supports dynamic
loading or has the GD module statically linked into it.)
  at /home/vtx3/apache/htdocs/perl/GD/fills.pl line 3
Compilation failed in require at /home/vtx3/apache/htdocs/perl/GD/fills.pl
line 3. 
BEGIN failed--compilation aborted at
/home/vtx3/apache/htdocs/perl/GD/fills.pl line 3. 

On the other site when I call the perl-script directly with perl5, that is
"perl fills.pl", without apache/mod_perl, it works.

I'm working with perl5.005.63 and and Apache.1.3.9.

Can somebody give me a solution.