Drobo

how to install perl modules

I am new to perl-drobo and I’m looking for help on how to install modules. I want to use this nifty File::Find::Rule the Llama perl book is describing, but I am failing to install it. See my error attached. So then I go ahead and get ExtUtils and try to make it but I get the same error.

Any thoughts?

perl Makefile.PL

Can’t locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /mnt/DroboFS/Shares/DroboApps/perl/lib/perl/5.10.0 /mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0 /mnt/DroboFS/Shares/DroboApps/perl/lib/perl/5.10.0/ /mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0/ /mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0/ /mnt/DroboFS/Shares/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 .) at Makefile.PL line 4.
BEGIN failed–compilation aborted at Makefile.PL line 4.

ls -l

-rw-r–r-- 1 root root 4369 Nov 27 2009 Changes
-rw-r–r-- 1 root root 275 Feb 18 2009 MANIFEST
-rw-r–r-- 1 root root 591 Nov 27 2009 META.yml
-rwxr-xr-x 1 root root 420 May 21 10:29 Makefile.PL
-rw-r–r-- 1 root root 2127 Nov 27 2009 README
-rw-r–r-- 1 root root 3318 Feb 18 2009 findrule
drwxr-sr-x 4 root root 4096 May 21 10:34 lib
drwxr-sr-x 3 root root 4096 Nov 27 2009 t
drwxr-sr-x 4 root root 4096 Nov 27 2009 testdir

so I went ahead and download ExtUtils-ModuleMaker from CPAN and try to make it…

pwd

/mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0/ExtUtils-ModuleMaker-0.51

perl Makefile.PL

Can’t locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /mnt/DroboFS/Shares/DroboApps/perl/lib/perl/5.10.0 /mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0 /mnt/DroboFS/Shares/DroboApps/perl/lib/perl/5.10.0/ /mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0/ /mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0/ /mnt/DroboFS/Shares/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 .) at Makefile.PL line 1.
BEGIN failed–compilation aborted at Makefile.PL line 1.

-=-=-=-=-=- my env -=-=-=

env

USER=root
LD_LIBRARY_PATH=/mnt/DroboFS/Shares/DroboApps/perl/lib/perl/5.10.0/:/mnt/DroboFS/Shares/DroboApps/perl/lib:
OLDPWD=/mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0
HOME=/mnt/DroboFS
LOGNAME=root
TERM=xterm-color
PATH=/usr/bin:/bin
PERL5LIB=/mnt/DroboFS/Shares/DroboApps/perl/lib/perl/5.10.0:/mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0:/mnt/DroboFS/Shares/DroboApps/perl/lib/perl/5.10.0/:/mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0/:/mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0/:/mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0:
SHELL=/bin/sh
PWD=/mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0/File-Find-Rule-0.32
TZ=EST8DST

Maybe the folder name is for ModuleMaker is wrong?

Try:
“ExtUtils-ModuleMaker”
instead of:
“ExtUtils-ModuleMaker-0.51”

So I’ve gone ahead and made two folders;
ExtUtils-ModuleMaker
and
ExtUtils-ModuleMaker-0.51

Neither one will work when I set the directory and #perl Makefile.PL

I’m confused because I have gone through that @INC myself and it is a valid complaint, there is no Folder called ExtUtils in either of the …/perl/lib/perl/5.10.0 or the …perl/share/perl/5.10.0 directories.

For Drobo’s implementation of Perl am I supposed to be editing the makefile.pl?

output follows…

pwd

/mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0/ExtUtils-ModuleMaker

ls -l

-rw-r–r-- 1 root root 13789 May 23 05:38 Changes
-rw-r–r-- 1 root root 20216 May 23 05:38 LICENSE
-rw-r–r-- 1 root root 2486 May 23 05:38 MANIFEST
-rw-r–r-- 1 root root 268 May 23 05:38 MANIFEST.SKIP
-rw-r–r-- 1 root root 611 May 23 05:38 META.yml
-rw-r–r-- 1 root root 670 May 23 05:38 Makefile.PL
-rw-r–r-- 1 root root 1637 May 23 05:38 README
drwxr-sr-x 4 root root 4096 May 23 05:38 lib
drwxr-sr-x 3 root root 4096 May 23 05:38 scripts
drwxr-sr-x 9 root root 4096 May 23 05:38 t

perl Makefile.PL

Can’t locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /mnt/DroboFS/Shares/DroboApps/perl/lib/perl/5.10.0 /mnt/DroboFS/Shares/DroboApps/perl/share/perl/5.10.0 /mnt/DroboFS/Shares/DroboApps/perl/lib/perl/5.10.0/ /mnt/DroboFS/Shares/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 .) at Makefile.PL line 1.
BEGIN failed–compilation aborted at Makefile.PL line 1.

Then you probably need to download all the files missing for that ExtUtils folder.

Disclaimer: I’m just guessing here, since I have very little experience with perl. I have been trying to cross-compile the latest version (5.14.0), but that is a topic for another thread.