Drobo

perl

Description:
$ perl -v

This is perl, v5.10.0 built for arm-linux-gnueabi-thread-multi

Please note: this is not perfect, it may not work properly, use at your own risk. I’ve only tried doing some very basic tests so far, so if you have any problems, please post to this thread. This package was based on the debian armel packages. I’ve been working on a custom cross-compile of perl, but here’s something to play with in the meanwhile.

Some environment variables have to be set up beforehand.

LD_LIBRARY_PATH: must be set to the directory where libperl is located.

PERL5LIB: A list of direcotries in which to look for perl modules. If you decide to install more perl modules, I’d suggest putting them in a different directory inside DroboApps so they don’t get overwritten if/when there’s an updated version of this package. Multiple directories can be specified by PERL5LIB by using ‘:’.

Example:

$ export LD_LIBRARY_PATH=/mnt/DroboShares/Drobo/DroboApps/perl/lib
$ export PERL5LIB=/mnt/DroboShares/Drobo/DroboApps/perl/share/perl/5.10.0
$ cat test.pl
#!/mnt/DroboShares/Drobo/DroboApps/perl/bin/perl -w

use strict;

my $foo = “bar”;

print “foo is $foo.\n”;
$ ./test.pl
foo is bar.

Author: freebsdgirl

DOWNLOAD NOW

For those looking for a quicky on this,

~ $ cat >> .profile 
export LD_LIBRARY_PATH=/mnt/DroboShares/Drobo/DroboApps/perl/lib
export PERL5LIB=/mnt/DroboShares/Drobo/DroboApps/perl/share/perl/5.10.0
export PATH=$PATH:/mnt/DroboShares/Drobo/DroboApps/perl/bin

Which gets me far enough to fail at this point. I’ll continue working on this next time I have a moment.

~ $ echo $PERL5LIB
/mnt/DroboShares/Drobo/DroboApps/perl/share/perl/5.10.0
~ $ which perl
/mnt/DroboShares/Drobo/DroboApps/perl/bin/perl
~ $ perl -V
Can't locate Config.pm in @INC (@INC contains: /mnt/DroboShares/Drobo/DroboApps/perl/share/perl/5.10.0 /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .).
BEGIN failed--compilation aborted.
~ $