error: XML::Parser perl module is required for intltool

在Maemo SDK 2.2的arm target里编译时,遇到这样的错误

checking for intltool >= 0.23... 0.33 found
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
告诉如何找成问题的真实原因。

运行

/usr/bin/perl -e "require XML::Parser"

错误信息变为:

Can't load '/usr/lib/perl5/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: /usr/lib/perl5/auto/XML/Parser/Expat/Expat.so: cannot open shared object file: No such file or directory at /scratchbox/tools/lib/perl5/5.8.4/i686-linux-thread-multi/DynaLoader.pm line 230.
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下

$ cd /host_usr
$ tar -xzvf /scratchbox/packages/scratchbox-perl-dev.tar.gz

一个半月没更新了。。。

由于种种原因,我已经有足足一个半月的时间没更新了,也没有及时回复各位朋友的留言,真是抱歉!而且,跟Maemo有关的几项活动,如MaemoCJK里scim的工作、Stardict的移植以及Maemo界面中文化的工作,全部都停滞了下来。。。

对Mameo项目的关注少了,只知道SDK已经出来3.2的正式版本和4.0的alpha版本,还有基于Mozilla内核的浏览器也有了,这些都还没有时间去尝个鲜。

8月即将来到,希望到时项目能告一段落,能把这么多落下的东西补回来!

Maemo开发环境里的无法解析域名的问题

在Maemo的scratchbox环境里无法解析域名(尤其是使用现成的Maemo VMWare Appliance时),比如apt-get时报错

Temporary failure resolving 'repository.maemo.org'

但检查target里的/etc/resolv.conf,一切正常。

原因是起作用的不是每个target里的/etc/resolv.conf,而是统一使用/scratchbox/etc/resolv.conf

参考: http://www.internettablettalk.com/forums/archive/index.php/t-6332.html