Ray Zimmerman wrote:
At 11:55 AM -0700 10/20/03, Stas Bekman wrote:

Ray Zimmerman wrote:

At 11:12 AM -0700 10/20/03, Stas Bekman wrote:

Are you sure you are trying it under running mod_perl, and not mod_cgi?



No ... I haven't gotten that far ... I'm just trying to run a script from the command line. The following works just fine on my Linux box ...


Hehe, that's your problem. Apache:: modules don't work from the command line, since the modperl/apache runtime environment is not loaded.


I'm afraid I don't have the expertise to debug the byte order issues, etc. but I wanted to be sure that I'm trying to do something reasonable. Your comments seem to imply that Apache::Scoreboard is only meant to be used within a mod_perl environment, but the POD docs say ...

SYNOPSIS
         use Apache::Scoreboard ();

         #inside httpd
         my $image = Apache::Scoreboard->image;

#outside httpd
my $image = Apache::Scoreboard->fetch("http://localhost/scoreboard";);


... which to me indicates that it is intended to work from the command-line as well, like the little script I posted.

I think 99.9% of Apache:: modules won't work outside mod_perl. When you see Apache:: think mod_perl. Remember your original report with missing symbols:


The first three:
_ap_rwrite
_ap_send_http_header
_ap_set_content_length

live in Apache, so you can't run it without Apache.

_sv2request_rec

This one comes from mod_perl, so you need mod_perl.

Just trying to sort out whether this is a bug or whether I'm expecting it do something it was not intended to do.

The latter. Though it's quite possible that it can be arranged for it not to require mod_perl.


BTW, who maintains Apache::Scoreboard ... Doug?

Doug maintains the 1.x generation. I maintain the 2.x generation. I'll make a first release soon.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to