首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装mod_perl2时出错

安装mod_perl2时出错
EN

Stack Overflow用户
提问于 2014-02-07 21:33:31
回答 3查看 1.9K关注 0票数 1

日安。

我尝试用Apache2.4.7在ubuntu上安装mod_perl (2.0.8)

首先我跑

代码语言:javascript
复制
$ perl Makefile.PL MP_APXS=$HOME/httpd/bin/apxs MP_APR_CONFIG=$HOME/httpd/bin/apr-1-config

然后

make && make测试产生错误

代码语言:javascript
复制
Connection.xs: In function ‘XS_Apache2__Connection_remote_addr’:
Connection.xs:117: error: ‘conn_rec’ has no member named ‘remote_addr’
Connection.xs: In function ‘XS_Apache2__Connection_remote_ip’:
Connection.xs:134: error: ‘conn_rec’ has no member named ‘remote_ip’
Connection.xs:138: error: ‘conn_rec’ has no member named ‘remote_ip’
make[3]: *** [Connection.o] Error 1
make[3]: Leaving directory `/home/perlito/mod_perl-2.0.8/WrapXS/Apache2/Connection'
make[2]: *** [subdirs] Error 2
make[2]: Leaving directory `/home/perlito/mod_perl-2.0.8/WrapXS/Apache2'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/home/perlito/mod_perl-2.0.8/WrapXS'
make: *** [subdirs] Error 2

有什么想法吗?

谢谢。

更新

让source_scan给我那个错误

代码语言:javascript
复制
$ make source_scan
/home/perlito/perl5/bin/perl build/source_scan.pl
panic: multiple types without intervening comma in
    ' int(*ap_vhost_iterate_conn_cb)(void* baton, conn_rec* conn, server_rec* s)'
whited-out as
    ' int(*ap_vhost_iterate_conn_cb)(                                          )'
panic: multiple types without intervening comma in
    ' void(*Perl_ophook_t)(PerlInterpreter* my_perl , OP*)'
whited-out as
    ' void(*Perl_ophook_t)(                              )'
panic: multiple types without intervening comma in
    ' void(*Perl_cpeep_t)(PerlInterpreter* my_perl , OP *, OP *)'
whited-out as
    ' void(*Perl_cpeep_t)(                                     )'
panic: multiple types without intervening comma in
    ' void(*globhook_t)(PerlInterpreter* my_perl )'
whited-out as
    ' void(*globhook_t)(                         )'
Expecting parenth after identifier in `regexp_engine const * Perl_current_re_engine(PerlInterpreter* my_perl )'
after `regexp_engine ' at lib/ModPerl/CScan.pm line 819.
 at lib/ModPerl/CScan.pm line 819.
    ModPerl::CScan::do_declaration('regexp_engine const * Perl_current_re_engine(PerlInterpreter*...', 'HASH(0x92323f0)', 'HASH(0x9241a80)') called at lib/ModPerl/CScan.pm line 762
    ModPerl::CScan::do_declarations('ARRAY(0x921b1a8)', 'HASH(0x92323f0)', 'HASH(0x9241a80)') called at /home/perlito/perl5/lib/site_perl/5.18.2/Data/Flow.pm line 93
    Data::Flow::request('Apache2::ParseSource::Scan=ARRAY(0x92329b0)', 'parsed_fdecls') called at /home/perlito/perl5/lib/site_perl/5.18.2/Data/Flow.pm line 46
    Data::Flow::get('Apache2::ParseSource::Scan=ARRAY(0x92329b0)', 'parsed_fdecls') called at lib/Apache2/ParseSource.pm line 68
    Apache2::ParseSource::Scan::get('Apache2::ParseSource::Scan=ARRAY(0x92329b0)', 'parsed_fdecls') called at lib/Apache2/ParseSource.pm line 413
    Apache2::ParseSource::get_functions('Apache2::ParseSource=HASH(0x92327d0)') called at lib/Apache2/ParseSource.pm line 509
    Apache2::ParseSource::write_functions_pm('Apache2::ParseSource=HASH(0x92327d0)') called at build/source_scan.pl line 18
make: *** [source_scan] Error 255
EN

回答 3

Stack Overflow用户

发布于 2014-02-27 16:35:21

不幸的是,上游mod_perl还没有移植到Apache2.4。

AFAIK Debian开发人员进行了一些更改,允许您在Apache2.4上编译和使用mod_perl。下面是它们的源树http://svn.apache.org/repos/asf/perl/modperl/branches/httpd24

票数 1
EN

Stack Overflow用户

发布于 2014-02-07 21:59:20

尝试在make之前运行以下命令:

代码语言:javascript
复制
    make source_scan
    make xs_generate
票数 0
EN

Stack Overflow用户

发布于 2014-02-08 20:08:17

我通过apt-get安装apache2并通过cpan安装Apache2::RequestRec解决了这个问题

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21629110

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档