You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Stas Bekman <st...@stason.org> on 2003/07/31 13:48:20 UTC

Re: Trouble with Apache::Request

>>On 6 Jun 2003, K Old wrote:

[...]

> Well, here are the errors I'm getting:
> 
> When I *force* and install of Apache::Request and a script calls
> Apache::Request, this is in the error_log:
> [Fri Jun  6 17:27:31 2003] [error] Can't locate object method "new" via
> package "Apache::Request" at
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache/Request.pm
> line 22.
> 
> This is from doing a make test when trying to install Apache::Request
> manually:
> 
> Syntax error on line 31 of /root/.cpan/build/libapreq-1.1/t/httpd.conf:
> Can't load
> '/root/.cpan/build/libapreq-1.1/blib/arch/auto/Apache/Request/Request.so' for module Apache::Request: libapreq.so.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
>  at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/mod_perl.pm
> line 14
> Compilation failed in require at (eval 16) line 3.

This patch resolves this problem:
http://marc.theaimsgroup.com/?l=apreq-dev&m=105965131008577&w=2

it should go in in the next release.

__________________________________________________________________
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


Re: Trouble with Apache::Request

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Fri, 1 Aug 2003, Jie Gao wrote:

> Hi All,
>
> perl-5.8.0 + mp1.99_10.
> -----------------------
>
> I am having problem trying to get /perl-status work.
>
> It bombs out in Status.pm at the following location:
>
> --------------------------------------------------------------------------
> if (eval {require Apache::Request}) {
>     $newQ ||= sub { Apache::Request->new(@_) };
> }
> elsif (eval {require CGI}) {
>     $newQ ||= sub { CGI->new; };
> }
> else {
>     die "Need CGI.pm or Apache::Request to operate";
> }
> --------------------------------------------------------------------------
>
> But shouldn't "Apache::Request" be "Apache::RequestRec"?

Apache::Request is part of the libapreq package, a port of
which to Apache2 is still being developed.

best regards,
randy kobes


Re: Trouble with Apache::Request

Posted by Jie Gao <J....@isu.usyd.edu.au>.
Hi All,

perl-5.8.0 + mp1.99_10.
-----------------------

I am having problem trying to get /perl-status work.

It bombs out in Status.pm at the following location:

--------------------------------------------------------------------------
if (eval {require Apache::Request}) {
    $newQ ||= sub { Apache::Request->new(@_) };
}
elsif (eval {require CGI}) {
    $newQ ||= sub { CGI->new; };
}
else {
    die "Need CGI.pm or Apache::Request to operate";
}
--------------------------------------------------------------------------

But shouldn't "Apache::Request" be "Apache::RequestRec"?

Sincerely,



Jie


Re: Trouble with Apache::Request

Posted by Stas Bekman <st...@stason.org>.
Glenn E. Bailey III wrote:
> I had this exact same issue yesterday. I noticed that is was installing
> the libapreq.so.1 in
> /usr/local/lib and /usr/local/lib wasn't in my /etc/ld.so.conf file.
> Just add /usr/local/lib
> to your /etc/ld.so.conf file and then run "ldconfig" .. Worked for me
> and I was messing with
> the darn thing for about 3 hours.

It shouldn't have installed it in first place. actually there are a few more 
patches on win32 that will go in soon. A new release will make those problems 
go away.

> . Glenn E. Bailey III
> . Sprocket Data, Inc.
> . http://www.sprocketdata.com  
> 
> : -----Original Message-----
> : From: Stas Bekman [mailto:stas@stason.org] 
> : Sent: Thursday, July 31, 2003 6:48 AM
> : To: K Old
> : Cc: ModPerl List
> : Subject: Re: Trouble with Apache::Request
> : 
> : 
> : >>On 6 Jun 2003, K Old wrote:
> : 
> : [...]
> : 
> : > Well, here are the errors I'm getting:
> : > 
> : > When I *force* and install of Apache::Request and a script calls 
> : > Apache::Request, this is in the error_log: [Fri Jun  6 
> : 17:27:31 2003] 
> : > [error] Can't locate object method "new" via package 
> : "Apache::Request" 
> : > at 
> : > 
> : /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache/Request.
> : > pm
> : > line 22.
> : > 
> : > This is from doing a make test when trying to install 
> : Apache::Request
> : > manually:
> : > 
> : > Syntax error on line 31 of 
> : > /root/.cpan/build/libapreq-1.1/t/httpd.conf:
> : > Can't load
> : > 
> : '/root/.cpan/build/libapreq-1.1/blib/arch/auto/Apache/Request/
> : Request.so' for module Apache::Request: libapreq.so.1: cannot 
> : open shared object file: No such file or directory at 
> : /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
> : >  at 
> : /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/mod_perl.pm
> : > line 14
> : > Compilation failed in require at (eval 16) line 3.
> : 
> : This patch resolves this problem: 
> : http://marc.theaimsgroup.com/?l=apreq-dev&m=105965131008577&w=
> 2
> 
> it should go in in the next release.
> 
> __________________________________________________________________
> 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
> 


-- 


__________________________________________________________________
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


RE: Trouble with Apache::Request

Posted by "Glenn E. Bailey III" <gb...@sprocketdata.com>.
I had this exact same issue yesterday. I noticed that is was installing
the libapreq.so.1 in
/usr/local/lib and /usr/local/lib wasn't in my /etc/ld.so.conf file.
Just add /usr/local/lib
to your /etc/ld.so.conf file and then run "ldconfig" .. Worked for me
and I was messing with
the darn thing for about 3 hours.

. Glenn E. Bailey III
. Sprocket Data, Inc.
. http://www.sprocketdata.com  

: -----Original Message-----
: From: Stas Bekman [mailto:stas@stason.org] 
: Sent: Thursday, July 31, 2003 6:48 AM
: To: K Old
: Cc: ModPerl List
: Subject: Re: Trouble with Apache::Request
: 
: 
: >>On 6 Jun 2003, K Old wrote:
: 
: [...]
: 
: > Well, here are the errors I'm getting:
: > 
: > When I *force* and install of Apache::Request and a script calls 
: > Apache::Request, this is in the error_log: [Fri Jun  6 
: 17:27:31 2003] 
: > [error] Can't locate object method "new" via package 
: "Apache::Request" 
: > at 
: > 
: /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache/Request.
: > pm
: > line 22.
: > 
: > This is from doing a make test when trying to install 
: Apache::Request
: > manually:
: > 
: > Syntax error on line 31 of 
: > /root/.cpan/build/libapreq-1.1/t/httpd.conf:
: > Can't load
: > 
: '/root/.cpan/build/libapreq-1.1/blib/arch/auto/Apache/Request/
: Request.so' for module Apache::Request: libapreq.so.1: cannot 
: open shared object file: No such file or directory at 
: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
: >  at 
: /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/mod_perl.pm
: > line 14
: > Compilation failed in require at (eval 16) line 3.
: 
: This patch resolves this problem: 
: http://marc.theaimsgroup.com/?l=apreq-dev&m=105965131008577&w=
2

it should go in in the next release.

__________________________________________________________________
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