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

[root@s930l3333 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/samba/include /usr/local/include /usr/include /usr/local/samba3/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/samba/lib /usr/local/lib /usr/lib /usr/local/samba3/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 Writing Makefile for Filesys::SmbClient [root@s930l3333 Filesys-SmbClient-3.1]# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++ [root@s930l3333 Filesys-SmbClient-3.1]# make Skip blib/lib/Filesys/SmbClient.pm (unchanged) gcc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing + -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_ +FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexce +ptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generi +c -DVERSION=\"3.1\" -DXS_VERSION=\"3.1\" -fPIC "-I/usr/lib64/perl5/ +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 gcc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing + -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_ +FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexce +ptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generi +c -DVERSION=\"3.1\" -DXS_VERSION=\"3.1\" -fPIC "-I/usr/lib64/perl5/ +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) Running Mkbootstrap for Filesys::SmbClient () chmod 644 SmbClient.bs rm -f blib/arch/auto/Filesys/SmbClient/SmbClient.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions - +fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic libaut +hSamba.o SmbClient.o -o blib/arch/auto/Filesys/SmbClient/SmbClient.s +o \ -lsmbclient \ chmod 755 blib/arch/auto/Filesys/SmbClient/SmbClient.so cp SmbClient.bs blib/arch/auto/Filesys/SmbClient/SmbClient.bs chmod 644 blib/arch/auto/Filesys/SmbClient/SmbClient.bs Manifying blib/man3/Filesys::SmbClient.3pm [root@s930l3333 Filesys-SmbClient-3.1]# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++ [root@s930l3333 Filesys-SmbClient-3.1]# [root@s930l3333 Filesys-SmbClient-3.1]# make install Files found in blib/arch: installing files in blib/lib into architectu +re dependent library tree Installing /usr/local/lib/perl5/x86_64-linux-thread-multi/auto/Filesys +/SmbClient/SmbClient.so Installing /usr/local/lib/perl5/x86_64-linux-thread-multi/auto/Filesys +/SmbClient/SmbClient.bs Installing /usr/local/lib/perl5/x86_64-linux-thread-multi/Filesys/SmbC +lient.pm Installing /usr/local/lib/perl5/x86_64-linux-thread-multi/auto/Filesys +/SmbClient/autosplit.ix Installing /usr/local/man/man3/Filesys::SmbClient.3pm Appending installation info to /usr/local/lib/perl5/x86_64-linux-threa +d-multi/perllocal.pod [root@s930l3333 Filesys-SmbClient-3.1]#

Please find below code on working server

In reply to Re^2: Can't load perl module Filesys::SmbClient by bvani
in thread Can't load perl module Filesys::SmbClient by bvani

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.