我正在尝试为ubuntu服务器11.04构建zimbra HELIX-710。
我需要编译perl,我得到一个非常奇怪的错误,我不明白。建筑物一切顺利,但在验证阶段出现错误。
这里的痕迹。
loic@loicvm:/home/public/p4/HELIX-710/ThirdParty/Perl$ make rm -rf tmp /home/public/p4/HELIX-710/ThirdParty/Perl/zimbramon /home/public/p4/HELIX-710/ThirdPartyBuilds/UBUNTUUNKNOWN_64/perl/perllib.tgz /home/public/p4/HELIX-710/ThirdPartyBuilds/UBUNTUUNKNOWN_64/perl/perlbin.tgz rm -f ThirdParty-Perllibs.log mkdir -p /home/loic/.cpan/CPAN sed -e "s|@@LYNX@@|/usr/bin/lynx|g" -e "s|@@WGET@@|/usr/bin/wget|g" -e "s|@@LESS@@|/usr/bin/less|g" -e "s|@@GPG@@|/usr/bin/gpg|g" -e "s|@@UNZIP@@|/usr/bin/unzip|g" -e "s|@@CURL@@|/usr/bin/curl|g" -e "s|@@BZIP2@@|/bin/bzip2|g" -e "s|@@MAKE@@|/usr/bin/make|g" -e "s|@@FTP@@|/usr/bin/ftp|g" -e "s|@@TAR@@|/bin/tar|g" -e "s|@@GZIP@@|/bin/gzip|g" -e "s|@@BUILD_TYPE@@|INSTALL_BASE|g" -e "s|@@BUILD_ROOT@@|/home/public/p4/HELIX-710/ThirdParty/Perl|g" -e "s|@@CMIRROR@@|http://zre-matrix.eng.vmware.com/cpan/|g" MyConfig.pm.template > /home/loic/.cpan/CPAN/MyConfig.pm mkdir -p /home/public/p4/HELIX-710/ThirdParty/Perl/zimbramon/lib (cd /home/public/p4/HELIX-710/ThirdParty/Perl/zimbramon/lib; ln -s ../lib perl5) mkdir -p /home/public/p4/HELIX-710/ThirdParty/Perl/zimbramon/bin mkdir -p tmp Logging to ThirdParty-Perllibs.log Compiling perl lib Crypt-SSLeay-0.57 ...done. Compiling perl lib Crypt-OpenSSL-Random-0.04 ...done. Compiling perl lib Crypt-OpenSSL-RSA-0.26 ...done. Compiling perl lib Array-Compare-1.17 ...done. Compiling perl lib Tree::DAG_Node ...done. Compiling perl lib Sub::Uplevel ...done. Compiling perl lib Test::Exception ...done. Compiling perl lib Test::Warn ...done. Compiling perl lib Net-SSLeay-1.36 ...done. Compiling perl lib XML-Parser-2.36 ...done. Compiling perl lib IO ...seddone. Compiling perl lib Scalar::Util ...done. Compiling perl lib IO::Socket::SSL ...done. Compiling perl lib Socket6 ...done. Compiling perl lib DBI ...done. Compiling perl lib IO::Zlib ...done. Compiling perl lib Bit::Vector ...done. Compiling perl lib HTML::Tagset ...done. Compiling perl lib HTML::Parser ...done. Compiling perl lib URI ...done. Compiling perl lib Net::HTTP ...done. Compiling perl lib Net::SMTP ...done. Compiling perl lib Proc::ProcessTable ...done. Compiling perl lib HTTP::Parser ...done. Compiling perl lib IO::Stringy ...done. Compiling perl lib E/ER/ERYQ/MIME-Lite-2.117.tar.gz ...done. Compiling perl lib D/DA/DAGOLDEN/Module-Build-0.3607.tar.gz ...done. Compiling perl lib Mail::Mailer ...done. Compiling perl lib Convert::BinHex ...done. Compiling perl lib D/DO/DONEILL/MIME-tools-5.427.tar.gz ...done. Compiling perl lib SOAP::Lite ...done. Compiling perl lib Net::Telnet ...done. Compiling perl lib Config::IniFiles ...done. Compiling perl lib Config::Properties ...done. Compiling perl lib Cache::FastMmap ...done. Compiling perl lib Device::SerialPort ...done. Compiling perl lib Date::Calc ...done. Compiling perl lib S/SB/SBECK/Date-Manip-5.56.tar.gz ...done. Compiling perl lib Date::Parse ...done. Compiling perl lib Time::HiRes ...done. Compiling perl lib Convert::ASN1 ...done. Compiling perl lib Net::LDAP ...done. Compiling perl lib Net::Server ...done. Compiling perl lib Unix::Syslog ...done. Compiling perl lib Parallel::ForkManager ...done. Compiling perl lib Package::Constants ...done. Compiling perl lib IO::Compress::Base ...done. Compiling perl lib IO::Compress::Gzip ...done. Compiling perl lib Compress::Raw::Zlib ...done. Compiling perl lib P/PM/PMQS/Compress-Zlib-1.42.tar.gz ...done. Compiling perl lib Archive::Tar ...done. Compiling perl lib Digest::SHA1 ...done. Compiling perl lib Digest::HMAC ...done. Compiling perl lib Digest::HMAC_MD5 ...done. Compiling perl lib Convert::TNEF ...done. Compiling perl lib Convert::UUlib ...done. Compiling perl lib Net::IP ...done. Compiling perl lib Net::DNS ...done. Compiling perl lib File::Tail ...done. Compiling perl lib File::Temp ...done. Compiling perl lib File::Grep ...done. Compiling perl lib Data::UUID ...done. Compiling perl lib List::Compare ...done. Compiling perl lib Getopt::Easy ...done. Compiling perl lib Crypt::SaltedHash ...done. Compiling perl lib Archive::Zip ...done. Compiling perl lib Digest::SHA ...done. Compiling perl lib Error ...done. Compiling perl lib Mail::DKIM ...done. Compiling perl lib K/KH/KHAMPTON/XML-SAX-Base-1.04.tar.gz ...done. Compiling perl lib XML::SAX::Expat ...done. Compiling perl lib XML::Simple ...done. Compiling perl lib IO::Socket::INET6 ...done. Compiling perl lib NetAddr::IP ...done. Compiling perl lib Net::DNS::Resolver::Programmable ...done. Compiling perl lib version ...done. Compiling perl lib Geography::Countries ...done. Compiling perl lib IP::Country ...done. Compiling perl lib DBD::SQLite ...done. Compiling perl lib Net-LDAPapi-3.0.3 ...done. Compiling perl lib BerkeleyDB-0.41 ...done. Compiling perl lib DB_File ...done. Compiling perl lib DBD::mysql ...done. Compiling perl lib Mail-SPF-v2.008 ...done. Compiling perl lib Mail-SpamAssassin-3.3.1 ...done. Compiling perl lib swatch-3.2.3 ...done. Verifying perl module build... /home/public/p4/HELIX-710/ThirdParty/Perl/zmcheckbuiltmodules.pl >> ThirdParty-Perllibs.log 2>&1; make: *** [check] Error 1
之后如果我手动午餐zmcheckbuiltmodules.pl,我就不会有任何错误。
loic@loicvm:/home/public/p4/HELIX-710/ThirdParty/Perl$ ./zmcheckbuiltmodules.pl /usr/share/perl5/HTTP/Request.pm /usr/share/perl5/LWP/UserAgent.pm
有人有一些线索吗?
答案 0 :(得分:0)
我browsed the log并且情况很明显:安装程序无可救药地被打破了。它在特定前缀/home/public/p4/HELIX-710/ThirdParty/Perl/zimbramon/
下安装Perl模块,但实际上并未将此路径添加到包含路径!所以Perl找不到刚刚安装的模块。这是一个非常愚蠢的错误,它永远不会超过QA。
示例:Sub :: Uplevel安装为/home/public/p4/HELIX-710/ThirdParty/Perl/zimbramon/lib/perl5/Sub/Uplevel.pm
,之后模块Test :: Exception需要它并失败,因为include路径只包含系统默认值/etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl
(闻起来像Debian)和临时CPAN构建位置。
要求修复此款或退款;或者,如果这不是一个选项,请将机器访问权限给具有CPAN安装故障排除经验的Perl程序员扫描件。