簡體   English   中英

使用apache2和ActivePerl 5.16編譯mod_perl?

[英]Compiling mod_perl using apache2 and ActivePerl 5.16?

我在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 tyro,我只想在我的服務器上啟動並運行一些軟件(很大程度上基於Perl)。 有什么建議嗎?

使用ActivePerl的目的是可以使用ppm 不幸的是,根據mod_perl 2.0.8狀態頁 ,它無法從ppm存儲庫中獲得。

症狀確實表明有些奇怪。 顯然,ExtUtils :: Embed 1.31來自5.19.2發行版。 您的安裝似乎確實有問題。

由於它似乎有效,因此我將其作為答案發布。 要更正此錯誤,請設置環境變量:

MP_USE_MY_EXTUTILS_EMBED=1

CPAN可能安裝了您下載的模塊的最新版本,而不是Perl 5.16發行的最新版本。 此環境變量必須只告訴mod_perl期望ExtUtils :: Embed 1.31而不是1.30。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM