[beaglebone] Problems with Perl installation

Hi,

I tried the following testscript, after bootstrap/configure fails:

    #! /usr/bin/perl
    use File::Glob

    $a=7

and got back:

Can't locate loadable object for module File::Glob in @INC (@INC
contains: /etc/perl /usr/lib/perl/site_perl/5.14.2/
/usr/lib/perl/site_perl/5.14.2 /usr/lib/perl/vendor_perl/5.14.2/
/usr/lib/perl/vendor_perl/5.14.2 /usr/lib/perl/5.14.2/
/usr/lib/perl/5.14.2 /usr/local/lib/site_perl /usr/lib/perl/5.14.2 .)
at ./test.pl line 4 Compilation failed in require at ./test.pl line 4.
BEGIN failed--compilation aborted at ./test.pl line 4.

ls -l /usr/lib/perl/5.14.2

-r--r--r-- 1 root root 15003 Apr 19 12:25 AutoLoader.pm
drwxr-xr-x 2 root root 4096 Aug 23 05:00 CGI
drwxr-xr-x 2 root root 4096 Aug 23 04:51 CORE
drwxr-xr-x 2 root root 4096 Aug 23 05:00 Carp
-r--r--r-- 1 root root 17564 Apr 19 12:25 Carp.pm
drwxr-xr-x 2 root root 4096 Aug 23 05:09 Class
-r--r--r-- 1 root root 4524 Apr 19 12:25 Config.pm
lrwxrwxrwx 1 root root 15 Aug 22 20:21 Config_heavy-target.pl -> Config_heavy.pl
-r--r--r-- 1 root root 44485 Apr 19 12:25 Config_heavy.pl
-r--r--r-- 1 root root 21311 Apr 19 12:25 Cwd.pm
drwxr-xr-x 2 root root 4096 Aug 22 20:22 Data
-r--r--r-- 1 root root 1556 Apr 19 12:25 DirHandle.pm
-r--r--r-- 1 root root 24941 Apr 19 12:25 DynaLoader.pm
drwxr-xr-x 2 root root 4096 Aug 23 05:02 Encode
-r--r--r-- 1 root root 6233 Apr 19 12:25 Errno.pm
drwxr-xr-x 2 root root 4096 Aug 23 04:36 Exporter
-r--r--r-- 1 root root 18686 Apr 19 12:25 Exporter.pm
-r--r--r-- 1 root root 3924 Apr 19 12:25 Fcntl.pm
drwxr-xr-x 3 root root 4096 Aug 23 05:21 File
-r--r--r-- 1 root root 6778 Apr 19 12:25 FileHandle.pm
drwxr-xr-x 2 root root 4096 Aug 22 20:22 Getopt
drwxr-xr-x 3 root root 4096 Aug 23 05:15 Hash
drwxr-xr-x 2 root root 4096 Aug 23 05:06 IO
-r--r--r-- 1 root root 1404 Apr 19 12:25 IO.pm
-r--r--r-- 1 root root 20934 Apr 19 12:25 POSIX.pm
-r--r--r-- 1 root root 1076 Apr 19 12:25 SelectSaver.pm
-r--r--r-- 1 root root 4794 Apr 19 12:25 Symbol.pm
drwxr-xr-x 2 root root 4096 Aug 22 20:22 Text
drwxr-xr-x 2 root root 4096 Aug 23 05:15 Tie
-r--r--r-- 1 root root 10776 Apr 19 12:25 XSLoader.pm
drwxr-xr-x 9 root root 4096 Aug 23 05:15 auto
-r--r--r-- 1 root root 3033 Apr 19 12:25 bytes.pm
-r--r--r-- 1 root root 13383 Apr 19 12:25 constant.pm
drwxr-xr-x 2 root root 4096 Aug 23 04:58 encoding
-r--r--r-- 1 root root 6622 Apr 19 12:25 feature.pm
-r--r--r-- 1 root root 53671 Apr 19 12:25 overload.pm
-r--r--r-- 1 root root 3716 Apr 19 12:25 strict.pm
drwxr-xr-x 2 root root 4096 Aug 23 05:01 threads
-r--r--r-- 1 root root 34385 Apr 19 12:25 threads.pm
-r--r--r-- 1 root root 2358 Apr 19 12:25 vars.pm
drwxr-xr-x 2 root root 4096 Aug 23 04:58 warnings
-r--r--r-- 1 root root 18672 Apr 19 12:25 warnings.pm

ls -l /usr/lib/perl/5.14.2/File

total 112
-r--r--r-- 1 root root 11251 Aug 23 04:35 Basename.pm
-r--r--r-- 1 root root 4332 Apr 19 12:25 Compare.pm
-r--r--r-- 1 root root 18668 Apr 19 12:25 Copy.pm
-r--r--r-- 1 root root 8228 Apr 19 12:25 DosGlob.pm
-r--r--r-- 1 root root 14239 Apr 19 12:25 Glob.pm
-r--r--r-- 1 root root 15732 Apr 19 12:25 GlobMapper.pm
drwxr-xr-x 2 root root 4096 Aug 22 20:22 Spec
-r--r--r-- 1 root root 10450 Apr 19 12:25 Spec.pm
-r--r--r-- 1 root root 9670 Apr 19 12:25 stat.pm

which shows, that the "missing file" ist there and
the path is part of ²INC...

It seems, that the pod-files are missing...

What did I wrong? How can I fix it?

(Everything perl related was installed via opkg from official
sources...)

Thank you very much in advance for any help!
Best regards,
mcc

Hi,

You might want to try uninstalling the opkg version of Perl, then downloading and reinstalling from source, as described here: http://www.impulseair.com.au/site/?p=244

The one and only time I had to install a Perl module on my beaglebone (SSLeay), I couldn’t get it to work until I tried this approach. Things have been working smoothly since then.

Dan.

Hi Dan,

thank you very much for your help...the beaglebone is already
dancing ... :slight_smile:

Best regards,
mcc

Dan Watts <gigamegawatts@gmail.com> [12-08-23 20:16]: