damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.42k stars 803 forks source link

Perl interpreter does not bundle unicore/PVA.pl #144

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:29

I have installed SL4A r4 and Perl 5.10.1, created this script and attempted to 
run it:

use Android;
my $a = Android->new;
print $a->smsGetMessages(0);

The script fails with message "Can't locate unicore/PVA.pl in @INC".

As the above script consists of nothing more than one API call provided by 
SL4A, this suggests that the Perl interpreter is not shipped with all required 
core modules.

What device(s) are you experiencing the problem on?

HTC Desire GSM (rooted)

What firmware version are you running on the device?

CyanogenMod 7.0.2.1 (Desire)

What steps will reproduce the problem?
1. install SL4A and Perl interpreter
2. create and run script specified above
3. observe error

What is the expected output? What do you see instead?

Error message seen as specified above; some other form of output not involving 
missing Perl modules expected.

What version of the product are you using? On what operating system?

See above.

Please provide any additional information below.

N/A

Original issue reported on code.google.com by alex.peters on 1 Jun 2011 at 4:36

Copied from original issue: damonkohler/android-scripting#550

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:29

Others have experienced this problem in different circumstances as evidenced by 
this discussion thread:

https://groups.google.com/d/topic/android-scripting/jCfZe2zpdXE/discussion

One suggested workaround is to manually copy core Perl modules from another 
Perl installation if available, but such an installation is not available to me 
and in any case seems somewhat kludgey.

Original comment by alex.peters on 1 Jun 2011 at 4:40