You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Gareth Palmer <ll...@gnu.osoal.org.nz> on 2003/03/12 02:40:20 UTC
mod_perl + GnuPG
I'm getting a strange error while trying to using the GnuPG module
while running under mod_perl (everything works fine when executing from
a shell)
The message is:
Can't locate object method "OPEN" via package "Apache::RequestRec"
(perhaps you forgot to load "Apache::RequestRec"?) at
/usr/lib/perl5/site_perl/5.6.3/GnuPG.pm line 252
Lines 250-253 in GnuPG.pm look like:
# This is where the output goes
if ( ref $self->{output} && defined fileno $self->{output} ) {
open ( STDOUT, ">&" . fileno $self->{output} )
or die "can't redirect stdout to proper output fd: $!\n";
I tried prefixing the open call with CORE:: but this didn't appear
to do anything (the error message was the same).
Versions:
perl 5.6.3
apache 2.0.44
mod_perl 1.99_08
GnuPG.pm 0.09
Thanks.
Re: mod_perl + GnuPG
Posted by Stas Bekman <st...@stason.org>.
Gareth Palmer wrote:
> I'm getting a strange error while trying to using the GnuPG module
> while running under mod_perl (everything works fine when executing from
> a shell)
>
> The message is:
> Can't locate object method "OPEN" via package "Apache::RequestRec"
> (perhaps you forgot to load "Apache::RequestRec"?) at
> /usr/lib/perl5/site_perl/5.6.3/GnuPG.pm line 252
> mod_perl 1.99_08
OPEN was added after 1.99_08. Please build the cvs version of mod_perl 2.0:
http://perl.apache.org/download/source.html#2_0_Development_Source_Distribution
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com