Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Perl Modules on Android OS

Are there an options to install Perl modules like LWP on Android (on SL4A environment ). Also, are there prepackaged Perl modules that can be installed on Android, and is there an option to see which modules are installed using the Android Debug Bridge.

like image 357
smith Avatar asked Feb 22 '12 21:02

smith


People also ask

How do I install CPAN modules?

To install Perl modules using CPAN, you need to use the cpan command-line utility. You can either run cpan with arguments from the command-line interface, for example, to install a module (e.g Geo::IP) use the -i flag as shown.


1 Answers

No. No. Perl can surely be asked to provide this, but you can start by looking under

$ ls /data/data/com.googlecode.perlforandroid/files/perl/5.10.0/

SL4A's perl actually comes with CPAN.pm - but not all of its dependencies, as you'll see with the errors you get with

$ perl -MCPAN -eshell

I used CPAN.pm on a Sharp Zaurus, running OpenBSD, and I used a CPAN.pm-less hack to install modules off of CPAN so that the process would be easier on my 64MB of RAM. My Galaxy Tab has slightly better hardware. But at present, nobody's done the work to make (unrooted) Android a comfortable home for Perl -- and as Perl is poorly-suited to Android app development, that may remain the case for a while.

EDIT: Well, try these:

  1. App::FatPacker

  2. App::cpanminus

like image 97
Julian Fondren Avatar answered Nov 12 '22 07:11

Julian Fondren