开发者

How do I install Perl Modules on Scripting Layer for Android (SL4A)?

I just installed SL4A to test Per开发者_运维知识库l on my Motorola Milestone. Is there a way to install a module? I need LWP::Simple.


You can install modules locally with normal CPAN clients and then push the perl modules to your Android device's SL4A site_perl with adb. cpanm has --local-lib option, which makes it easy to locally install modules.

% adb -e push /path/to/library/HTTP /sdcard/com.googlecode.perlforandroid/extras/perl/site_perl/HTTP

Note that this should only work with pure perl modules. I am not sure how you can build binary that is compatible to your SL4A environment.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜