【发布时间】:2013-08-02 01:43:21
【问题描述】:
我在 RHEL 5.9 服务器上使用 ActivePerl 5.16。我已经设置了 PATH 变量,以便首先找到 ActivePerl 可执行文件。现在我正在尝试编译 mod_perl.so。但是,perl Makefile.PL MP_APXS=/usr/sbin/apxs 命令会产生:
I have found ExtUtils::Embed 1.3001 at
/opt/ActivePerl-5.16/lib/ExtUtils/Embed.pm
This is probably not the right one for this perl version. Please make sure
there is only one version of this module installed and that it is the one
that comes with this perl version.
If you insist on using the ExtUtils::Embed as is set the environment
variable MP_USE_MY_EXTUTILS_EMBED=1 and try again.
Details: expecting ExtUtils::Embed 1.30 (according to Module::CoreList)
BEGIN failed--compilation aborted at lib/Apache2/Build.pm line 64.
Compilation failed in require at Makefile.PL line 37.
BEGIN failed--compilation aborted at Makefile.PL line 37.
我对这一切感到有些困惑...我是 Perl 初学者,我只想在我的服务器上启动并运行一些软件(主要基于 Perl)。有什么建议吗?
【问题讨论】:
-
您是否尝试像上面所说的那样设置环境变量
MP_USE_MY_EXTUTILS_EMBED=1?不知道那会做什么,但试一试也无妨 -
最终设置
MP_USE_MY_EXTUTILS_EMBED=1似乎确实有效。事实上,我刚刚从它的网站下载了 ActivePerl 5.16 并安装了它,并用新的 cpan 下载了所有必要的模块。
标签: perl rhel mod-perl apache2.2 activeperl