Cody Fendant has asked for the wisdom of the Perl Monks concerning the following question:

Trying to install this module and it's failing because it can't find libsmbclient.so.

I've installed Samba 3 via MacPorts and it all appears to be OK. Filesys::SmbClient asks for the location of two files, libsmbclient.h which is in /opt/local/include, and then it asks for libsmbclient.so which doesn't appear to exist on my system.

The module helpfully tells me to install Samba, but when I go to samba.org it just says that OS X already has Samba installed. There don't appear to be binaries for OS X any more.

Any advice gratefully received.

Replies are listed 'Best First'.
Re: Filesys::SmbClient can't find libsmbclient.so on OS X
by bitingduck (Deacon) on Mar 11, 2015 at 05:56 UTC

    You should be able to go to the "Go" menu and select "connect to server" (or just cmd-K) and then enter: smb://[hostname|hostaddress]/Sharename and it should eventually find it and ask for your credentials.

    More details here for up to 10.6 and here for 10.7 and later

      I already know how to connect through the regular OS. I need to connect with perl!
Re: Filesys::SmbClient can't find libsmbclient.so on OS X
by Anonymous Monk on Mar 10, 2015 at 23:49 UTC

    um, search your harddisk for libsmbclient.so, if there is a libsmbclient.h in there, it should exist

    if it doesn't exist, contact your operating system support ...

    haha

    apt-get install libsmbclient-dev yum install libsmbclient.i386
    ... whatevernessmacportshere
      I have searched my hard disk. In exactly the same way I searched for the .h file. It didn't find the .so file.

        I have searched my hard disk. In exactly the same way I searched for the .h file. It didn't find the .so file.

        Great, so  port search smbclient then  sudo port install  ???? or sudo port install samba3

        Also

        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

        So if this is all the same thing but the file isn't called libsmbclient.so but something else, edit Makefile.PL and change the filename