daveklingler has asked for the wisdom of the Perl Monks concerning the following question:
I've been trying to figure out how to use Apache2::Request/RequestRec/Upload for the past couple of days and I've run into an interesting mod_perl problem. Tonight after a lot of struggle I thought of pasting a code snippet from the Apache.org website:
use Apache2::Upload; $req = Apache2::Request->new($r); $upload = $req->upload("foo"); $size = $upload->size; # three methods to get at the upload's contents ... slurp, fh, io $upload->slurp($slurp_data); read $upload->fh, $fh_data, $size; ok $slurp_data eq $fh_data; my $io = $upload->io; print while <$io>;
Unfortunately while I would have sworn it ran when I first tried it, I'm now getting a 500 Internal Server Error and the following in my log (no matter what test scripts I run, not just this one):
[Wed Sep 16 22:23:32 2009] [error] [client ::1] dyld: lazy symbol bind +ing failed: Symbol not found: _modperl_xs_sv2request_rec [Wed Sep 16 22:23:32 2009] [error] [client ::1] Referenced from: /Li +brary/Perl/5.8.8/darwin-thread-multi-2level/auto/APR/Request/Apache2/ +Apache2.bundle [Wed Sep 16 22:23:32 2009] [error] [client ::1] Expected in: dynamic + lookup [Wed Sep 16 22:23:32 2009] [error] [client ::1] [Wed Sep 16 22:23:32 2009] [error] [client ::1] dyld: Symbol not found +: _modperl_xs_sv2request_rec [Wed Sep 16 22:23:32 2009] [error] [client ::1] Referenced from: /Li +brary/Perl/5.8.8/darwin-thread-multi-2level/auto/APR/Request/Apache2/ +Apache2.bundle [Wed Sep 16 22:23:32 2009] [error] [client ::1] Expected in: dynamic + lookup [Wed Sep 16 22:23:32 2009] [error] [client ::1] [Wed Sep 16 22:23:32 2009] [error] [client ::1] Premature end of scrip +t headers: test.cgi
Can anyone tell me what I'm missing? Make test ran 100% okay, and my httpd.conf does include "LoadModule perl_module modules/mod_perl.so" and "LoadModule apreq_module modules/mod_apreq2.so".
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl lib problem
by cmac (Monk) on Sep 17, 2009 at 06:46 UTC | |
by daveklingler (Initiate) on Sep 17, 2009 at 13:43 UTC | |
by cmac (Monk) on Sep 17, 2009 at 15:42 UTC | |
by daveklingler (Initiate) on Sep 17, 2009 at 15:31 UTC |