vin.hephaistion has asked for the wisdom of the Perl Monks concerning the following question:

I want to install Authen::Smb perl package on Windows 2008 server. I am using ActivePerl distribution ..perl version v5.16.3 (64 bit version). I tried following:

1) using ppm

C:\Perl64>ppm install Authen::Smb Syncing site PPM database with .packlists...done Syncing perl PPM database with .packlists...done ppm install failed: Can't find any package that provides Authen::Smb

2) using cpan

C:\Perl64>cpan Authen::Smb Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4 CPAN: Term::ANSIColor loaded ok (v4.02) CPAN: Storable loaded ok (v2.34) Reading 'C:\Perl64\cpan\Metadata' Database was generated on Thu, 11 Apr 2013 10:07:29 GMT Running install for module 'Authen::Smb' Running make for P/PM/PMKANE/Authen-Smb-0.91.tar.gz CPAN: Digest::SHA loaded ok (v5.84) CPAN: Compress::Zlib loaded ok (v2.06) Checksum for C:\Perl64\cpan\sources\authors\id\P\PM\PMKANE\Authen-Smb- +0.91.tar.g z ok CPAN: Archive::Tar loaded ok (v1.90) Authen-Smb-0.91/ Authen-Smb-0.91/smbval/ Authen-Smb-0.91/smbval/std-defines.h Authen-Smb-0.91/smbval/rfcnb-util.h Authen-Smb-0.91/smbval/hints/ Authen-Smb-0.91/smbval/hints/solaris_2.pl Authen-Smb-0.91/smbval/smblib.h Authen-Smb-0.91/smbval/smbdes.c Authen-Smb-0.91/smbval/rfcnb-priv.h Authen-Smb-0.91/smbval/smblib-util.c Authen-Smb-0.91/smbval/session.c Authen-Smb-0.91/smbval/md4.c Authen-Smb-0.91/smbval/rfcnb-common.h Authen-Smb-0.91/smbval/smbencrypt.c Authen-Smb-0.91/smbval/rfcnb-error.h Authen-Smb-0.91/smbval/smblib-priv.h Authen-Smb-0.91/smbval/valid.c Authen-Smb-0.91/smbval/rfcnb.h Authen-Smb-0.91/smbval/rfcnb-io.c Authen-Smb-0.91/smbval/std-includes.h Authen-Smb-0.91/smbval/smblib-common.h Authen-Smb-0.91/smbval/valid.h Authen-Smb-0.91/smbval/byteorder.h Authen-Smb-0.91/smbval/rfcnb-io.h Authen-Smb-0.91/smbval/rfcnb-util.c Authen-Smb-0.91/smbval/Makefile.PL Authen-Smb-0.91/smbval/smblib.c Authen-Smb-0.91/Makefile.PL Authen-Smb-0.91/test.pl Authen-Smb-0.91/Smb.pm Authen-Smb-0.91/README Authen-Smb-0.91/INSTALL Authen-Smb-0.91/MANIFEST Authen-Smb-0.91/Changes Authen-Smb-0.91/Smb.xs CPAN: File::Temp loaded ok (v0.22) CPAN: CPAN::Meta loaded ok (v2.120921) CPAN.pm: Building P/PM/PMKANE/Authen-Smb-0.91.tar.gz Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4 Checking if your kit is complete... Looks good Writing Makefile for Authen::Smb::smbvalid Writing MYMETA.yml and MYMETA.json Writing Makefile for Authen::Smb Writing MYMETA.yml and MYMETA.json CPAN: Module::CoreList loaded ok (v2.80) cp Smb.pm blib\lib\Authen\Smb.pm AutoSplitting blib\lib\Authen\Smb.pm (blib\lib\auto\Authen\Smb) cd smbval && C:\Perl64\site\bin\dmake.exe C:\Perl64\site\bin\gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -D +NO_STRICT -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DP +ERL_IMPLIC IT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRIBUTE -fno-strict +-aliasing -mms-bitfields -O2 -DVERSION=\"\" -DXS_VERSION=\"\" "-I +C:\Perl64\ lib\CORE" valid.c valid.c:3:20: fatal error: syslog.h: No such file or directory compilation terminated. dmake.exe: Error code 129, while making 'valid.o' dmake.exe: Error code 255, while making 'smbval\smbvalid.a' PMKANE/Authen-Smb-0.91.tar.gz C:\Perl64\site\bin\dmake.exe -- NOT OK CPAN: YAML::XS loaded ok (v0.39) Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible C:\Perl64>

PLease guide me on this !!!!

Replies are listed 'Best First'.
Re: Authen::Smb is not getting installed using ActivePerl
by Corion (Patriarch) on Apr 12, 2013 at 12:00 UTC

    You will have to find out where syslog.h lives on your system and make it available to your C compiler.

    Also see this bug report that claims that you have to make additional changes to the source code so it authenticates against Windows Server 2008.

Re: Authen::Smb is not getting installed using ActivePerl
by marto (Cardinal) on Apr 12, 2013 at 12:08 UTC

    Firstly I suggest you read the open bugs for this module, or in fact any module you consider installing. Unless you do so you won't be aware of known issues which may impact your development. The module has had an update in 14 years, and has active bugs. syslog.h is *nux, perhaps this is available in Cygwin also.

      I will keep that thing in mind , Marto, whenever I install other modules next time

Re: Authen::Smb is not getting installed using ActivePerl
by hdb (Monsignor) on Apr 12, 2013 at 12:39 UTC

    May I ask what you require this module for? As SAMBA is an idependent implementation of Windows native protocols there might be Windows tools available already w/o the module to achieve what you want. E.g. to access a file share on a SAMBA server is supported by Windows natively.

      I am writing a perl script in which I need to access FTP, SSH and telnet server, and also SMB....for all the other protocols I am using perl modules and it works fine.. so thought of using Authen::SMB

        Yes, but what do you want to do via SMB? Accessing a shared printer, shared drive?