You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Steve Thames <st...@softlife.com> on 2006/03/03 23:58:12 UTC

libapreq2 installation

I have been trying to install libapreq2 on Fedore FC4 with no luck.
Nearly all the tests work but all tests in glue/perl/t/apreq/cgi.t
fail.

I am installing as root but have 777 permissions on the entire /root
directory.  When that did not work, I change the user:group to
nobody:nobody for everything in the /root directory--no luck.

I ran strace against all the tests in cgi.t and found no access or
permission errors.  Here is the error from the error log:

>Can't load '/root/build/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/arch/auto/APR/Request/Request.so' for module APR::Request: libapreq2.so.2: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1]  at /root/build/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/lib/APR/Request/Param.pm line 27
>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1] Compilation failed in require at /root/build/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/lib/APR/Request/Param.pm line 27.
>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /root/build/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/lib/APR/Request/Param.pm line 27.
>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1] Compilation failed in require at /root/build/libapreq2-2.07/glue/perl/t/cgi-bin/test_cgi.pl line 11.
>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /root/build/libapreq2-2.07/glue/perl/t/cgi-bin/test_cgi.pl line 11.
>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1] Premature end of script headers: test_cgi.pl

The Request.so file does exist so I can only assume there is some file
Request.so can not find and the error is being reported this way from
Dynaloader.pm.

Obvously the results from the cgi.t tests are 500 errors resulting
from the above errors.

Hardware: Dell PowerEdge 1850 - Dual 2.8 Ghz procs
OS:            Fedora Core 4 Linux 2.6.11-1.1369_FC4smp
Apache:    2.0.54
Perl:          5.8.6
Mod Perl:  2.00002

I have verified all listed prerequisites for libapreq2.

I would really like to use this tool so if anyone has any ideas, I
would be thankful.


Re: libapreq2 installation

Posted by Bojan Smojver <bo...@rexursive.com>.
On Sat, 2006-03-04 at 06:35 -0800, Steve Thames wrote:

> I got libapreq2 2.07 from CPAN and am attempting the install.  This is
> the only problem with it.  Everything else works fine.

As a comparison, you can always do "yum install libapreq2" and see if it
fails the same way.

-- 
Bojan


Re: libapreq2 installation

Posted by Steve Thames <st...@softlife.com>.
I got libapreq2 2.07 from CPAN and am attempting the install.  This is
the only problem with it.  Everything else works fine.

On Sat, 04 Mar 2006 10:28:11 +1100, Bojan Smojver
<bo...@rexursive.com> wrote:

>On Fri, 2006-03-03 at 14:58 -0800, Steve Thames wrote:
>
>> I have verified all listed prerequisites for libapreq2.
>> 
>> I would really like to use this tool so if anyone has any ideas, I
>> would be thankful.
>
>The libapreq2 that you're using - is it and RPM from Fedora Extras or
>did you compile it yourself?


Re: libapreq2 installation

Posted by Bojan Smojver <bo...@rexursive.com>.
On Fri, 2006-03-03 at 14:58 -0800, Steve Thames wrote:

> I have verified all listed prerequisites for libapreq2.
> 
> I would really like to use this tool so if anyone has any ideas, I
> would be thankful.

The libapreq2 that you're using - is it and RPM from Fedora Extras or
did you compile it yourself?

-- 
Bojan


Re: libapreq2 installation

Posted by Steve Thames <st...@softlife.com>.
I set PERL5LIB to the location of the missing library:

export PERL5LIB=/root/build/libapreq2-2.07/library/.libs

no change.

I then set the LD_LIBRARY_PATH to the same value.  The tests still
failed but 'ldd Request.so' is now revealing this for libapreq2.so.2:

libapreq2.so.2 =>
/root/build/libapreq2-2.07/library/.libs/libapreq2.so.2 (0x00a2c000)

Any suggestions?

On Fri, 03 Mar 2006 18:25:50 -0500, Joe Schaefer
<jo...@sunstarsys.com> wrote:

>Steve Thames <st...@softlife.com> writes:
>
>> The Request.so file does exist so I can only assume there is some file
>> Request.so can not find and the error is being reported this way from
>> Dynaloader.pm.
>
>Right, it's reporting that it can't find libapreq2.so, which is pretty odd.
>What do you get from
>
>     $ ldd Request.so


Re: libapreq2 installation

Posted by Steve Thames <st...@softlife.com>.
$ldd Request.so
        linux-gate.so.1 =>  (0x00a2c000)
        libapreq2.so.2 => not found
        libaprutil-0.so.0 => /usr/lib/libaprutil-0.so.0 (0x00bf1000)
        libapr-0.so.0 => /usr/lib/libapr-0.so.0 (0x00b36000)
        libldap-2.2.so.7 => /usr/lib/libldap-2.2.so.7 (0x00c61000)
        liblber-2.2.so.7 => /usr/lib/liblber-2.2.so.7 (0x006ab000)
        libdb-4.3.so => /lib/tls/i686/libdb-4.3.so (0x0077d000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x002e2000)
        librt.so.1 => /lib/librt.so.1 (0x0074c000)
        libm.so.6 => /lib/libm.so.6 (0x00111000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x0025e000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00568000)
        libdl.so.2 => /lib/libdl.so.2 (0x00717000)
        libc.so.6 => /lib/libc.so.6 (0x00879000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x0065a000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00135000)
        libssl.so.5 => /lib/libssl.so.5 (0x0014b000)
        libcrypto.so.5 => /lib/libcrypto.so.5 (0x00301000)
        /lib/ld-linux.so.2 (0x0068e000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2
(0x00183000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x0019a000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x00626000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x0020c000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00f76000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0
(0x00e92000)

As you can see, Request.so can't find libapreq2.so.2 which is located
in libapreq2-2.07/library/.libs.  

Also, I'm getting this after the server starts but before the tests:

[warn] PassEnv variable PERL5LIB was undefined

Should this be set to something?

On Fri, 03 Mar 2006 18:25:50 -0500, Joe Schaefer
<jo...@sunstarsys.com> wrote:

>Steve Thames <st...@softlife.com> writes:
>
>> The Request.so file does exist so I can only assume there is some file
>> Request.so can not find and the error is being reported this way from
>> Dynaloader.pm.
>
>Right, it's reporting that it can't find libapreq2.so, which is pretty odd.
>What do you get from
>
>     $ ldd Request.so


Re: libapreq2 installation

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Steve Thames <st...@softlife.com> writes:

> The Request.so file does exist so I can only assume there is some file
> Request.so can not find and the error is being reported this way from
> Dynaloader.pm.

Right, it's reporting that it can't find libapreq2.so, which is pretty odd.
What do you get from

     $ ldd Request.so

-- 
Joe Schaefer


Re: libapreq2 installation

Posted by Steve Thames <st...@softlife.com>.
I solved this, finally, by downloading the SRPMS for libapreq2 2.07
and mod_perl 2.0.1, rebuilding and reinstalling.  All tests worked
fine.  Don't know what the problem was.  Moving on.

Thanks for your input.

On Fri, 03 Mar 2006 14:58:12 -0800, Steve Thames <st...@softlife.com>
wrote:

>I have been trying to install libapreq2 on Fedore FC4 with no luck.
>Nearly all the tests work but all tests in glue/perl/t/apreq/cgi.t
>fail.
>
>I am installing as root but have 777 permissions on the entire /root
>directory.  When that did not work, I change the user:group to
>nobody:nobody for everything in the /root directory--no luck.
>
>I ran strace against all the tests in cgi.t and found no access or
>permission errors.  Here is the error from the error log:
>
>>Can't load '/root/build/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/arch/auto/APR/Request/Request.so' for module APR::Request: libapreq2.so.2: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
>>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1]  at /root/build/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/lib/APR/Request/Param.pm line 27
>>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1] Compilation failed in require at /root/build/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/lib/APR/Request/Param.pm line 27.
>>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /root/build/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/lib/APR/Request/Param.pm line 27.
>>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1] Compilation failed in require at /root/build/libapreq2-2.07/glue/perl/t/cgi-bin/test_cgi.pl line 11.
>>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /root/build/libapreq2-2.07/glue/perl/t/cgi-bin/test_cgi.pl line 11.
>>[Fri Mar 03 13:49:49 2006] [error] [client 127.0.0.1] Premature end of script headers: test_cgi.pl
>
>The Request.so file does exist so I can only assume there is some file
>Request.so can not find and the error is being reported this way from
>Dynaloader.pm.
>
>Obvously the results from the cgi.t tests are 500 errors resulting
>from the above errors.
>
>Hardware: Dell PowerEdge 1850 - Dual 2.8 Ghz procs
>OS:            Fedora Core 4 Linux 2.6.11-1.1369_FC4smp
>Apache:    2.0.54
>Perl:          5.8.6
>Mod Perl:  2.00002
>
>I have verified all listed prerequisites for libapreq2.
>
>I would really like to use this tool so if anyone has any ideas, I
>would be thankful.
>