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

Ray Zimmerman wrote:

I have perl-5.8.0 installed on Mac OS X 10.2.8 in /usr/local with no problems.

The other day I installed Apache::Scoreboard but when I try running ...

#!/usr/bin/perl -w
use strict;
use Apache::Scoreboard;
1;

... I get ...

dyld: perl Undefined symbols:
_ap_rwrite
_ap_send_http_header
_ap_set_content_length
_sv2request_rec
Trace/BPT trap


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. perhaps Apache::Scoreboard should be patched to require 'mod_perl', I'll look into adding it.


The difference between MarxOS and Linux is that the former tries to resolve all symbols when you boot the shared object, whereas the latter uses the lazy resolving, resolving symbols as they are needed. In order to reproduce this on linux you need to run the script with env var PERL_DL_NONLAZY=1

__________________________________________________________________
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