我在Centos 5.5上安装Apache2::Request非常痛苦。我的apache是centos自带的标准版本。我是从libapreq2-2.13安装的,很多依赖项还不存在。到目前为止,我不得不这样做:
yum安装httpd-devel # for apxs
然后我就这么做了:
perl Makefile.PL --with-apache2-apxs=/usr/sbin/apxs make
make步骤告诉我需要: ExtUtils-XSBuilder和Parse-RecDescent,这是我适时安装的。
再次运行make会出现编译器错误:
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/apreq_xs_postperl.h:22:34: error: modperl_perl_unembed.h: No such file or directory
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/apreq_xs_postperl.h:25:33: error: modperl_common_util.h: No such file or directory
In file included from Apache2.xs:45:
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request__Apache2.h:1:22: error: mod_perl.h: No such file or directory有人能告诉我我遗漏了哪个包裹吗?有没有一种方法来安装这个通用的包,“就是工作”(tm)。非常感谢
发布于 2011-02-28 17:55:02
它已经为Centos打包好了。
$ repoquery -i --whatprovides 'perl(Apache2::Request)'
perl-libapreq2-0:2.09-0.rc2.1.el5.x86_64
$ sudo yum install perl-libapreq2(实际上,这只适用于使用EPEL存储库的情况)
发布于 2011-03-17 22:32:25
要安装头文件,yum install mod_perl-devel
https://stackoverflow.com/questions/5133073
复制相似问题