Why can I get "Cannot find load object for module" even after installing the module?

Can someone point me to the possible reasons that Perl will not find the installed module?

$ ll /usr/share/perl5/Unix/Processors.pm
-rw-r--r-- 1 root root 3.2K Sep 11 12:39 /usr/share/perl5/Unix/Processors.pm

Good,

$ perldoc -l Unix::Processors
/usr/share/perl5/Unix/Processors.pm

Okay, but

$ perl -MUnix::Processors -e1
Can't locate loadable object for module Unix::Processors in @INC (@INC contains: /usr/lib/cegma /usr/share/mocat/src /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.

FIXED: I put the compiled Processors.sonext to .pmwhen it should be in the directory auto.

+4
source share
1 answer

The module Unix::Processorscontains the XS (C) component, which must be compiled and linked as part of the installation process. The error message Can't locate loadable objectrefers to this component (shared library), and not to the module file itself.pm

, .pm , perldoc perlmodinstall. , , - .

+10

All Articles