在Apache httpd的-2.4.9安装的mod_perl-2.0.8 [英] Installing mod_perl-2.0.8 on Apache httpd-2.4.9
问题描述
我需要在Linux红帽操作系统,Apache的安装2.4.9 2.0.8的mod_perl。我已成功安装阿帕奇-2.4.9,但在安装的mod_perl 2.0.8,Makefile.PL成功执行和执行make命令时,它抛出下面的错误。任何一个可以帮助我解决这个错误。
I need to install mod_perl 2.0.8 in linux redhat operating system with apache-2.4.9. I have successfully installed "apache-2.4.9", but while installing mod_perl 2.0.8, Makefile.PL executed successfully and when executing make command it throws the below error. can any one help me to resolve this error.
perl Makefile.PL MP_APXS=/install/others/apache2/bin/apxs MP_APR_CONFIG=/install/others/httpd-2.4.9/srclib/apr/apr-1-config PREFIX=/install/others
[warning] mod_perl dso library will be built as mod_perl.so
[warning] You'll need to add the following to httpd.conf:
[warning]
[warning] LoadModule perl_module modules/mod_perl.so
[warning]
[warning] depending on your build, mod_perl might not live in
[warning] the modules/ directory.
[warning] Check the results of
[warning]
[warning] $ /install/others/apache2/bin/apxs -q LIBEXECDIR
[warning]
[warning] and adjust the LoadModule directive accordingly.
但在执行make命令时,它抛出下面的错误
But when executing make command it throws the below error
make
cd "src/modules/perl" && make
...
...
cp Connection.pm ../../../blib/lib/Apache2/Connection.pm
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap /install/others/mod_perl-2.0.8/xs/typemap Connection.xs > Connection.xsc && mv Connection.xsc Connection.c
gcc -c -I/install/others/mod_perl-2.0.8/src/modules/perl -I/install/others/mod_perl-2.0.8/xs -I/install/others/httpd-2.4.9/srclib/apr/include -I/install/others/apache2/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm -DMOD_PERL -DMP_COMPAT_1X -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"2.000008\" -DXS_VERSION=\"2.000008\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" -DMP_HAVE_APR_LIBS Connection.c
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 `/install/others/mod_perl-2.0.8/WrapXS/Apache2/Connection'
make[2]: *** [subdirs] Error 2
make[2]: Leaving directory `/install/others/mod_perl-2.0.8/WrapXS/Apache2'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/install/others/mod_perl-2.0.8/WrapXS'
make: *** [subdirs] Error 2
dqmadmin@weblp0005:/install/others/mod_perl-2.0.8
谢谢,结果
尚穆根A.
Thanks,
Shanmugam A.
推荐答案
从的http://mail-archives.apache.org/mod_mbox/perl-dev/201206.mbox/%3C4FCD5101.4060206@PCCC.com%3E
Connection.xs: In function 'XS_Apache2__Connection_remote_addr':
...
要修复这些,我编辑apache2_structures.map&安培; StructureTable.pm到REMOTE_ADDR改变,remote_ip到client_addr和CLIENT_IP
To fix those, I edited apache2_structures.map & StructureTable.pm to change remote_addr and remote_ip to client_addr and client_ip
此外
ServerRec.xs: In function 'XS_Apache2__ServerRec_loglevel':
...
要解决这个问题,我改变了/xs/tables/current/Apache2/StructureTable.pm指向log.level,而不是记录等级。
To fix that, I changed the /xs/tables/current/Apache2/StructureTable.pm to point to log.level instead of loglevel.
这篇关于在Apache httpd的-2.4.9安装的mod_perl-2.0.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!