"smbclient" command not working

I've installed Samba on my Solaris 10 (SPARC) server

# pkginfo |grep samba
system SUNWsmbac samba - A Windows SMB/CIFS fileserver for UNIX (client)
system SUNWsmbar samba - A Windows SMB/CIFS fileserver for UNIX (Root)
system SUNWsmbau samba - A Windows SMB/CIFS fileserver for UNIX (Usr)
system samba CIFS File and Print server

When I run the smbclient to list the shares, I get the following error message:

# /opt/samba/bin/smbclient -L localhost -N
ld.so.1: smbclient: fatal: libreadline.so.5: open failed: No such file or directory
Killed

ld.so.1 and libreadline.so.5 do exist on the server

# find / -name ld.so.1 -print
/usr/lib/ld.so.1
/usr/lib/sparcv9/ld.so.1
/etc/lib/ld.so.1
/lib/sparcv9/ld.so.1
/lib/ld.so.1

# find / -name libreadline.so.5 -print
/usr/local/lib/libreadline.so.5
Does anyone know how to resolve this?

No sure about your samba package origin but it looks broken.

As you already had samba installed, /usr/sfw/bin/smbclient should work better.