閱讀125 返回首頁    go 阿裏雲 go 技術社區[雲棲]


編譯intltool出現錯誤

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool

需要安裝XML-Parser

wget https://down.whsir.com/downloads/XML-Parser-2.44.tar.gz
tar zxf XML-Parser-2.44.tar.gz
cd XML-Parser-2.44
perl Makefile.PL
make && make install

如果perl Makefile.PL顯示下麵錯誤
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /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 Makefile.PL line 2.
BEGIN failed--compilation aborted at Makefile.PL line 2.

安裝

yum -y install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker後在執行perl Makefile.PL

最後更新:2017-07-02 11:27:02

  上一篇:go  給wordpress導航菜單添加個性圖標
  下一篇:go  編譯XML-Parser報錯