编译Apache 2.4 mod_perl-2.0.11

问题描述 投票:1回答:1

我有一个环境,其中Apache 2.4.43由以下配置手动编译:

"./configure" \
"--enable-so" \
"--enable-deflate" \
"--enable-cache" \
"--enable-mem-cache" \
"--enable-rewrite" \
"--enable-ssl" \
"--with-included-apr" \
"--enable-socache-memcache" \
"--with-mpm=prefork" \
"$@"

现在我正在尝试使用以下命令编译mod_perl-2.0.11:

perl Makefile.PL MP_APXS = / usr / local / apache2 / bin / apxs

并且我收到此错误:

Can't locate ExtUtils/Embed.pm in @INC (@INC contains: lib Apache-Test/lib /root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi /root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at lib/Apache2/Build.pm line 28.
BEGIN failed--compilation aborted at lib/Apache2/Build.pm line 28.
Compilation failed in require at Makefile.PL line 38.
BEGIN failed--compilation aborted at Makefile.PL line 38.

已安装所有perl依赖项,但我无法解决此问题。

S.O。是CentOS 7。

linux apache perl centos7 mod-perl
1个回答
1
投票

好吧,经过长时间的搜索,我发现我需要再安装一件东西,这是perl-ExtUtils-Embed,我认为用cpan安装所有perl依赖项和很多perl软件包之后,这已经安装了。实际上,choroba的评论在我脑海中闪闪发光,我开始以不同的方式进行搜索,直到找到一则有关以下内容的帖子:

yum install perl-ExtUtils-Embed

之后,我可以运行perl命令:

perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
© www.soinside.com 2019 - 2024. All rights reserved.