smthames has asked for the wisdom of the Perl Monks concerning the following question:

Hello. I've never posted here before. If I'm doing this incorrectly, please forgive me.
Installing: libapreq2 2.07 Hardware: Poweredge 1850 - Dual 2.8 Mhz procs OS: Linux 2.6.11-1.1369_FC4smp
All of the t/apreq/cgi.t tests fail with this in 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 /u +sr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230. at /root/build/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/lib/APR/ +Request/Param.pm line 27 Compilation failed in require at /root/build/libapreq2-2.07/glue/perl/ +t/cgi-bin/../../blib/lib/APR/Request/Param.pm line 27. BEGIN failed--compilation aborted at /root/build/libapreq2-2.07/glue/p +erl/t/cgi-bin/../../blib/lib/APR/Request/Param.pm line 27. Compilation failed in require at /root/build/libapreq2-2.07/glue/perl/ +t/cgi-bin/test_cgi.pl line 11. BEGIN failed--compilation aborted at /root/build/libapreq2-2.07/glue/p +erl/t/cgi-bin/test_cgi.pl line 11. Premature end of script headers: test_cgi.pl
It appears the module Request.so cannot be found but, in fact, it is there.

This is the same problem for which a Perl Test Failure is listed on CPAN: http://nntp.x.perl.org/group/perl.cpan.testers/284929

Can anyone please help with this?

Replies are listed 'Best First'.
Re: libapreq2 installtion
by salvix (Pilgrim) on Mar 03, 2006 at 17:38 UTC
    The tests are probably running as another user so they don't have access to that directory (/root/build/...).

    Try either installing it on another directory so a user like "nobody" has read access to it or change the permissions of your /root directory:

    find /root -type d -exec chmod a+rx {} \;
      Thanks I tried that. I tried settings permissions on all files and directories from /root down to 777--didn't work. Then I tried setting owner and group to nobody:nobody--still didn't work, same error. Any other ideas?
        Hmmm... Ok, let's try harder then :)
        strace -ffv make test 2>&1 | egrep -ie "(EPERM|ENOENT|EACCES|open|stat +)"
        This has to give you some hint... :)
Re: libapreq2 installtion
by bowei_99 (Friar) on Mar 03, 2006 at 21:57 UTC
    Hm, I would also prefer to compile from source, but if you need it working immediately or want something to compare to, you could try installing the RPM.

    I did a google search for libapreq2 and Request.so, and found the following links -

    http://rpm.pbone.net/index.php3/stat/4/idpl/2121371/com/libapreq2-debuginfo-2.06-2.fc4.i386.rpm.html
    http://rpmfind.net/linux/RPM/fedora/devel/i386/debug/libapreq2-debuginfo-2.07-0.2.rc4.fc5.i386.html
    http://rpm.pbone.net/index.php3/stat/4/idpl/2121347/com/perl-libapreq2-2.06-2.fc4.i386.rpm.html
    

    Since that second link is from Fedora Extras, I'm guessing you may not have that installed. To find out, you can type

    rpm -qa | grep libapreq2
    

    You could also post the question to the apache mailing list....

    -- Burvil