在Maemo SDK 2.2的arm target里编译时,遇到这样的错误
checking for perl... /scratchbox/tools/bin/perl
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
先google这篇帖子,http://www.karakas-online.de/forum/viewtopic.php?t=3915
告诉如何找成问题的真实原因。
运行
错误信息变为:
at /usr/lib/perl5/XML/Parser.pm line 14
Compilation failed in require at /usr/lib/perl5/XML/Parser.pm line 14.
BEGIN failed--compilation aborted at /usr/lib/perl5/XML/Parser.pm line 18.
Compilation failed in require at - line 1.
BEGIN failed--compilation aborted at - line 1.
可是Expat.so这个文件在那里啊,继续google,找到真正的原因和解决方案:
在scratchbox环境,也就是在Maemo SDK 2.2的arm target下
$ tar -xzvf /scratchbox/packages/scratchbox-perl-dev.tar.gz