Hi Ged,

On Fri, 2003-06-06 at 13:55, Ged Haywood wrote:
> Hi there,
> 
> On 6 Jun 2003, K Old wrote:
> 
> > No, I didn't build a threaded Perl, it seems to be the popular thing
> > among any linux distro these days to build it with threads.  
> > 
> > I'll build a version without threads just to see if it works
> 
> Want to run that by me again??
> 

Mandrake 9.0 (and several other linux distros) come out of the box with
Perl 5.8.0 built with threads.  I'm guessing that having Perl compiled
with threads might be what's causing the problem in getting
Apache::Request installed.


> > > I'm having trouble getting Apache::Request installed on my Mandrake 9.0
> [snip]
> > > make test.  I can force the install, but the same error comes up when I
> > > try to load Apache::Request as a PerlModule in httpd.conf or when Alzabo
> > > calls it.
> 
> Is it *exactly* the same error?

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.




Still with the forced install of Apache::Request, if I try to call it
from httpd.conf via PerlModule Apache::Request, I get this error.

Syntax error on line 590 of /usr/local/apache/conf/httpd.conf:
Can't load
'/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/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 4) line 3.

> 
> > > Any chance I should build perl without the threads?  I've heard that can
> > > be the cause of a lot of problems.
> 
> Just Perl 5.8.0 can cause problems... do you have any others kicking around?
> I'm thinking of 5.7.2 for example (ducks in case Stas throws something :)
> which has done me good service.  Wouldn't recommend 5.6.anything.

I'm starting to agree.  Just this afternoon I build Apache::Request
without any problems on an RH 7.3 box with Perl 5.6.1 compiled without
threads.  Anyone else have Apache::Request running under Perl 5.8.0 with
threads enabled?


> 
> [snip]
> > > t/httpd -f `pwd`/t/httpd.conf
> > > 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
> [snip]
> 
> Is there in fact no such file or directory?
> 

The file Requests.so does exist and it is in the location being
referenced.  The permissions are 755.

> I don't like that it's even looking in there...  Are you building it all
> as root?  Bad idea generally, although -MCPAN does rather encourage it.

Yeah, I hear ya on the CPAN thing....I am building it as root, but have
tried it as a regular user and get the same errors....

Any ideas?

Thanks for your help,
Kevin
-- 
K Old <[EMAIL PROTECTED]>

Reply via email to