2007/6/13, Jeff Pang <[EMAIL PROTECTED]>:
hello, When I installed Apache2::Request (without make test) and rut it I got the errors: [EMAIL PROTECTED] libapreq2-2.08]# perl -MApache2::Request -e '' Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/APR/APR.so' for module APR: libaprutil-0.so.0: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/APR/Pool.pm line 23 Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/APR/Pool.pm line 23. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/APR/Pool.pm line 23. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/APR/Request.pm line 26. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/APR/Request.pm line 26. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/APR/Request/Param.pm line 27. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/APR/Request/Param.pm line 27. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Apache2/Request.pm line 2. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Apache2/Request.pm line 2. Compilation failed in require. BEGIN failed--compilation aborted. [EMAIL PROTECTED] libapreq2-2.08]# perl -MAPR -e '' Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/APR/APR.so' for module APR: libaprutil-0.so.0: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. at -e line 0 Compilation failed in require. BEGIN failed--compilation aborted. What's the correct way to install Apache2::Request? Thanks!
Hi, I remembered that I have met this problem before, But not very clearly. so I install these again, but not found any problem: history: 2 mkdir opt 3 mv httpd-2.0.59.tar.bz2 /opt 6 cd opt/ 10 wget http://search.cpan.org/CPAN/authors/id/J/JO/JOESUF/libapreq2-2.08.tar.gz 12 wget http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz 14 tar -jxvf httpd-2.0.59.tar.bz2 16 tar -zxvf libapreq2-2.08.tar.gz 18 tar -zxvf mod_perl-2.0-current.tar.gz build apache2 27 ./configure --prefix=/web --enable-so --with-mpm=prefork 28 make && make install build mod_perl 32 cd ../mod_perl-2.0.3/ 34 perl Makefile.PL MP_APXS=/web/bin/apxs 35 make 36 make install build libapreq 47 cd ../libapreq2-2.08 50 perl Makefile.PL --with-apache2-apxs=/web/bin/apxs 51 make 52 make install perl -MApache2::Request -e '' --- OK I am running fedora6, and have removed the old mod_perl and libapreq before this installation, and this is not the best method to install them, if you still have this problem, you can copy the shared libs to apache2 lib directory: libapreq2-2.08]#find . -name "*.so*" ./glue/perl/blib/arch/auto/APR/Request/Request.so ./glue/perl/blib/arch/auto/APR/Request/Cookie/Cookie.so ./glue/perl/blib/arch/auto/APR/Request/Apache2/Apache2.so ./glue/perl/blib/arch/auto/APR/Request/Error/Error.so ./glue/perl/blib/arch/auto/APR/Request/Parser/Parser.so ./glue/perl/blib/arch/auto/APR/Request/Hook/Hook.so ./glue/perl/blib/arch/auto/APR/Request/Param/Param.so ./glue/perl/blib/arch/auto/APR/Request/CGI/CGI.so ./module/apache2/.libs/mod_apreq2.so ./module/apache2/.libs/mod_apreq2.soT ./library/.libs/libapreq2.so.2 ./library/.libs/libapreq2.so.2.6.0 ./library/.libs/libapreq2.so #find /web -name "libaprutil-0.so*" /web/lib/libaprutil-0.so.0.9.12 /web/lib/libaprutil-0.so /web/lib/libaprutil-0.so.0 ps: I know you translated some section of <Practical Mod_Perl>, thanks! hope you can do more work to let Perl much more popular in Chin4.