我在RHEL 5.9服務器上使用ActivePerl 5.16。我已經設置了PATH變量,以便首先找到ActivePerl可執行文件。現在我試圖編譯mod_perl.so。但是,命令perl Makefile.PL MP_APXS=/usr/sbin/apxs
生產:使用apache2和ActivePerl 5.16編譯mod_perl?
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'就像它說的那樣?不知道會做什麼,但它不會受傷 – chilemagic
在最後的設置'MP_USE_MY_EXTUTILS_EMBED = 1'似乎工作。事實上,我剛從網站上下載ActivePerl 5.16並安裝它,並用新的cpan下載了所有必要的模塊。 – Alasdair