in reply to Can't load perl module Filesys::SmbClient

See Re: libwww-perl fails

The problem is Filesys::SmbClient was installed using a different perl version that the perl version trying to load it

So, re-install Filesys::SmbClient using the current perl version, that way when current perl version tried to load Filesys::SmbClient it will work

Or dont try to run the program using this different perl version than the version that installed the module, use the same perl version that was used to install Filesys::SmbClient

  • Comment on Re: Can't load perl module Filesys::SmbClient

Replies are listed 'Best First'.
Re^2: Can't load perl module Filesys::SmbClient
by marto (Cardinal) on Jul 05, 2017 at 22:55 UTC

    As stated in the thread this works one one server, but not on another. bvani said that the perl version was different between servers, and that they had tried to install the module into various different places on the server where the error is being produced. As the error message and instance log show, perl isn't looking in the path it was installed. There's no evidence that there are multiple perls on the same server causing this problem.

      Then libperl is corrupted somehow

      If its a system perl check the sums or whatever

      Or just install a local perl

Re^2: Can't load perl module Filesys::SmbClient
by bvani (Initiate) on Jul 06, 2017 at 06:19 UTC
    Hi, Can you let me know how to check perl version used to install module and perl version used to load module. Below is some information from server that can help.
    [root@s930l3099 Filesys-SmbClient-3.1]# perl -MFilesys::SmbClient -e'p +rint $_ . " => " . $INC{$_} . "\n" for keys %INC' Tie/Hash.pm => /usr/local/lib/perl5/5.22.1/Tie/Hash.pm Tie/StdHandle.pm => /usr/local/lib/perl5/5.22.1/Tie/StdHandle.pm strict.pm => /usr/local/lib/perl5/5.22.1/strict.pm warnings/register.pm => /usr/local/lib/perl5/5.22.1/warnings/register. +pm Config.pm => /usr/local/lib/perl5/5.22.1/x86_64-linux/Config.pm AutoLoader.pm => /usr/local/lib/perl5/5.22.1/AutoLoader.pm vars.pm => /usr/local/lib/perl5/5.22.1/vars.pm Carp.pm => /usr/local/lib/perl5/5.22.1/Carp.pm Fcntl.pm => /usr/local/lib/perl5/5.22.1/x86_64-linux/Fcntl.pm Filesys/SmbClient.pm => /usr/local/lib/perl5/site_perl/5.22.1/x86_64-l +inux/Filesys/SmbClient.pm XSLoader.pm => /usr/local/lib/perl5/5.22.1/XSLoader.pm POSIX.pm => /usr/local/lib/perl5/5.22.1/x86_64-linux/POSIX.pm warnings.pm => /usr/local/lib/perl5/5.22.1/warnings.pm DynaLoader.pm => /usr/local/lib/perl5/5.22.1/x86_64-linux/DynaLoader.p +m Exporter.pm => /usr/local/lib/perl5/5.22.1/Exporter.pm Tie/Handle.pm => /usr/local/lib/perl5/5.22.1/Tie/Handle.pm constant.pm => /usr/local/lib/perl5/5.22.1/constant.pm You have new mail in /var/spool/mail/root [root@s930l3099 Filesys-SmbClient-3.1]#
    Thank you!
      Check the path?