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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Can't load perl module Filesys::SmbClient
by bvani (Initiate) on Jul 05, 2017 at 18:58 UTC
    Hi, Please find below output for module installation on both issue server and working server. Please find below steps on issue server
    [root@s930l3099 Filesys-SmbClient-3.1]# perl Makefile.PL INSTALL_BASE= +/usr/local I search in: /opt/quest/include /usr/local/s/include /s/include /include /usr/s/include /root/include /usr/local/include /usr/include /usr/local/samba3/include /usr/local/samba/include Where can I find libsmbclient.h ? [/usr/include] I search in: /opt/quest/lib /usr/local/s/lib /s/lib /lib /usr/s/lib /root/lib /usr/local/samba3/lib /usr/local/samba/lib /usr/local/lib /usr/lib Where can I find libsmbclient.so ? [] ************************************************************* ** WHAT !!!! ** I Can't find libsmbclient.so : No such file or directory. ************************************************************* If you don't have this file you can download last version of Samba on www.samba.org and do: $ tar zxvf samba-2.2.x.tar.gz $ cd samba-2.2.x/source $ ./configure $ make bin/libsmbclient.so Then you can find libsmbclient.h in source/include directory and libsmbclient.so in source/bin directory. You can then put them in /usr/include and /usr/lib (or /usr/local/include and /usr/local/lib) Do you want make tests ?(you will be prompted for server / worgroup / share / user / password to make read write access. [yes] Server ? [localhost] Share ? [homes] Workgroup/Domain ? [] Smb user ? [root] Smb password ? Compile module with trace to STDERR ? [no] checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for working alloca.h... yes checking for alloca... yes checking for smbc_mkdir in -lsmbclient... yes checking for smbc_open in -lsmbclient... yes checking for smbc_fstat in -lsmbclient... yes checking for smbc_init_context in -lsmbclient... yes Good you have SMBCTXX->flags You use SMBCTXX->close_fn (release >= 3.0.20). configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged Generating a Unix-style Makefile Writing Makefile for Filesys::SmbClient Writing MYMETA.yml and MYMETA.json [root@s930l3099 Filesys-SmbClient-3.1]# [root@s930l3099 Filesys-SmbClient-3.1]# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++ [root@s930l3099 Filesys-SmbClient-3.1]# make Skip blib/lib/Filesys/SmbClient.pm (unchanged) Running Mkbootstrap for Filesys::SmbClient () chmod 644 "SmbClient.bs" cc -c -I/usr/include -fwrapv -fno-strict-aliasing -pipe -fstack-prote +ctor -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +-D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"3.1\" -DXS_VERSION=\"3.1\" -fPI +C "-I/usr/local/lib/perl5/5.22.1/x86_64-linux/CORE" libauthSamba.c libauthSamba.c: In function ‘ask_auth_fn’: libauthSamba.c:80: warning: ignoring return value of ‘fgets’, declared + with attribute warn_unused_result libauthSamba.c:88: warning: ignoring return value of ‘fgets’, declared + with attribute warn_unused_result libauthSamba.c:96: warning: ignoring return value of ‘fgets’, declared + with attribute warn_unused_result cc -c -I/usr/include -fwrapv -fno-strict-aliasing -pipe -fstack-prote +ctor -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +-D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"3.1\" -DXS_VERSION=\"3.1\" -fPI +C "-I/usr/local/lib/perl5/5.22.1/x86_64-linux/CORE" SmbClient.c SmbClient.xs: In function ‘XS_Filesys__SmbClient__init’: SmbClient.xs:43: warning: ‘debug’ is deprecated (declared at /usr/incl +ude/libsmbclient.h:2848) SmbClient.xs:45: warning: ‘auth_fn’ is deprecated (declared at /usr/in +clude/libsmbclient.h:2943) SmbClient.xs:46: warning: ‘debug’ is deprecated (declared at /usr/incl +ude/libsmbclient.h:2848) SmbClient.xs: In function ‘XS_Filesys__SmbClient__set_flags’: SmbClient.xs:71: warning: ‘flags’ is deprecated (declared at /usr/incl +ude/libsmbclient.h:3029) SmbClient.xs: In function ‘XS_Filesys__SmbClient__mkdir’: SmbClient.xs:92: warning: ‘mkdir’ is deprecated (declared at /usr/incl +ude/libsmbclient.h:2909) SmbClient.xs: In function ‘XS_Filesys__SmbClient__rmdir’: SmbClient.xs:116: warning: ‘rmdir’ is deprecated (declared at /usr/inc +lude/libsmbclient.h:2910) SmbClient.xs: In function ‘XS_Filesys__SmbClient__opendir’: SmbClient.xs:138: warning: ‘opendir’ is deprecated (declared at /usr/i +nclude/libsmbclient.h:2905) SmbClient.xs: In function ‘XS_Filesys__SmbClient__closedir’: SmbClient.xs:165: warning: ‘closedir’ is deprecated (declared at /usr/ +include/libsmbclient.h:2906) SmbClient.xs: In function ‘XS_Filesys__SmbClient__readdir’: SmbClient.xs:197: warning: ‘readdir’ is deprecated (declared at /usr/i +nclude/libsmbclient.h:2907) SmbClient.xs: In function ‘XS_Filesys__SmbClient__stat’: SmbClient.xs:225: warning: ‘stat’ is deprecated (declared at /usr/incl +ude/libsmbclient.h:2899) SmbClient.xs: In function ‘XS_Filesys__SmbClient__fstat’: SmbClient.xs:261: warning: ‘fstat’ is deprecated (declared at /usr/inc +lude/libsmbclient.h:2900) SmbClient.xs: In function ‘XS_Filesys__SmbClient__rename’: SmbClient.xs:293: warning: ‘rename’ is deprecated (declared at /usr/in +clude/libsmbclient.h:2897) SmbClient.xs: In function ‘XS_Filesys__SmbClient__open’: SmbClient.xs:338: warning: ‘open’ is deprecated (declared at /usr/incl +ude/libsmbclient.h:2892) SmbClient.xs:349: warning: ‘lseek’ is deprecated (declared at /usr/inc +lude/libsmbclient.h:2898) SmbClient.xs: In function ‘XS_Filesys__SmbClient__read’: SmbClient.xs:368: warning: ‘read’ is deprecated (declared at /usr/incl +ude/libsmbclient.h:2894) SmbClient.xs: In function ‘XS_Filesys__SmbClient__write’: SmbClient.xs:392: warning: ‘write’ is deprecated (declared at /usr/inc +lude/libsmbclient.h:2895) SmbClient.xs: In function ‘XS_Filesys__SmbClient__lseek’: SmbClient.xs:418: warning: ‘lseek’ is deprecated (declared at /usr/inc +lude/libsmbclient.h:2898) SmbClient.xs: In function ‘XS_Filesys__SmbClient__close’: SmbClient.xs:446: warning: ‘close_fn’ is deprecated (declared at /usr/ +include/libsmbclient.h:2904) SmbClient.xs: In function ‘XS_Filesys__SmbClient__unlink’: SmbClient.xs:464: warning: ‘unlink’ is deprecated (declared at /usr/in +clude/libsmbclient.h:2896) rm -f blib/arch/auto/Filesys/SmbClient/SmbClient.so LD_RUN_PATH="/usr/lib/../lib64" cc -shared -O2 -L/usr/local/lib -fsta +ck-protector libauthSamba.o SmbClient.o -o blib/arch/auto/Filesys/Sm +bClient/SmbClient.so \ -lsmbclient \ chmod 755 blib/arch/auto/Filesys/SmbClient/SmbClient.so "/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SmbC +lient.bs blib/arch/auto/Filesys/SmbClient/SmbClient.bs 644 Manifying 1 pod document [root@s930l3099 Filesys-SmbClient-3.1]# [root@s930l3099 Filesys-SmbClient-3.1]# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++ [root@s930l3099 Filesys-SmbClient-3.1]# make install Running Mkbootstrap for Filesys::SmbClient () chmod 644 "SmbClient.bs" Manifying 1 pod document Files found in blib/arch: installing files in blib/lib into architectu +re dependent library tree Installing /usr/local/lib/perl5/x86_64-linux/auto/Filesys/SmbClient/Sm +bClient.so Installing /usr/local/lib/perl5/x86_64-linux/auto/Filesys/SmbClient/au +tosplit.ix Installing /usr/local/lib/perl5/x86_64-linux/Filesys/SmbClient.pm Installing /usr/local/man/man3/Filesys::SmbClient.3 Appending installation info to /usr/local/lib/perl5/x86_64-linux/perll +ocal.pod [root@s930l3099 Filesys-SmbClient-3.1]#
    Please find below steps on working server

    Please find below code on working server

      The server you say doesn't work installs to:

      Installing /usr/local/lib/perl5/x86_64-linux-thread-multi/auto/Filesys +/SmbClient/SmbClient.so ....

      The error you report says:

      Can't load '/usr/local/lib/perl5/site_perl/5.22.1/x86_64-linux/auto/Fi +lesys/SmbClient/SmbClient.so'

      You mentioned you've tried many things to get this to work, I think maybe you can't see the woods for the trees anymore. Consider reading SoPW, the associated links, and taking the time to post a short script which replicates the problem, not just the output for your installation.

        Consider reading SoPW, the associated links, and taking the time to post a short script which replicates the problem, not just the output for your installation.

        This is unkind advice unbecoming of marto

        Is perlmonks so innundated with traffic, and are the perlmonks so desperate to respond to every node, even if it is to say, just fucking google it? Pathetic