Link to home
Start Free TrialLog in
Avatar of Maddy
MaddyFlag for India

asked on

SAMBA installation failing with libraries dependencies

Hi Experts,

I am trying to install SAMBA of Redhat 5, it failling with libraies dependencies.

Below steps i carried out:
Installed : with nodeps.
1. rpm -ivh samba-common-3.0.9-1.3E.18.x86_64.rpm --nodeps
   rpm -ivh samba-client-3.0.9-1.3E.18.x86_64.rpm --nodeps
   rpm -ivh samba-3.0.9-1.3E.18.x86_64.rpm --nodeps

2. While starting smb:
/etc/init.d/smb start
Starting SMB services: smbd: error while loading shared libraries: libldap.so.2: cannot open shared object file: No such file or directory
                                                           [FAILED]
Starting NMB services: nmbd: error while loading shared libraries: libcom_err.so.3: cannot open shared object file: No such file or directory
                                                           [FAILED]
Gettting above error. I tried my best there is no luck..... Could any please help me ?

Thansk & Regards,

SK
Avatar of Papertrip
Papertrip
Flag of United States of America image

Those missing libraries are in the openldap and libcom_err packages.  If you hadn't used --nodeps then it would not have let you install it, is there a specific reason you used --nodeps?

Is there a reason you aren't using yum for all this?  yum will take care of all the dependencies for you.
Avatar of Gerwin Jansen
You could try adding the --aid flag when installing, to automatically solve dependencies. Remove the --nodeps as well. Like this:

rpm -ivh --aid samba-3.0.9-1.3E.18.x86_64.rpm
Avatar of Maddy

ASKER

Hi Papertrip/gerwin,
@Papertrip : Yes when i try to install the SAMBA pakage its asked for below dependencies, to over come the issue i had ued --nodeps.

YUM: We are not connected to RHN, we using YUM repositery server (without connecting to RHN) belo i tryed.

# yum install 'samba*'
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package samba* available.
Nothing to do

@gerwin.
Now i eraised all SAMBA packages and tried.

# rpm -ivh --aid samba-3.0.9-1.3E.18.x86_64.rpm
warning: samba-3.0.9-1.3E.18.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 025e513b
error: Failed dependencies:
        libcom_err.so.3()(64bit) is needed by samba-3.0.9-1.3E.18.x86_64
        libcrypto.so.4()(64bit) is needed by samba-3.0.9-1.3E.18.x86_64
        liblber.so.2()(64bit) is needed by samba-3.0.9-1.3E.18.x86_64
        libldap.so.2()(64bit) is needed by samba-3.0.9-1.3E.18.x86_64
        libssl.so.4()(64bit) is needed by samba-3.0.9-1.3E.18.x86_64
        samba-common = 0:3.0.9 is needed by samba-3.0.9-1.3E.18.x86_64

COULD YOU PLESE HELP ME TO SORT OUT THIS ISSUE. HOW TO SORT...THANKS IN ADVANCE.

sk

rpm --aid is deprecated in favor of yum.  Also --aid requires the dependency packages to be on the local system.
Avatar of Maddy

ASKER

IT ANY POSSIBLE WAT TO FIX THE ISSUE WITHOUT USING YUM, OR WHERE I CAN GET LIB RPM'S
Wow.
try
# yum install samba*

instead of 'samba*'

I'm pretty sure that message from yum is telling you it couldn't find a package named "samba*" (it searched for the literal samba* because you put the single quotes around it, instead of using the * as a wildcard, which it should do without single quotes).
ASKER CERTIFIED SOLUTION
Avatar of Daniel McAllister
Daniel McAllister
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Maddy

ASKER

Hi Experts,

I am able to install samba on Linux box. However, i need to give anonymous access to Windows users, they connect from Windows 2003 server. How to allow the windows users to connect anonymous. And from windows server MSSQL database servers will put MSSQL backup file in LINUX SAMBA share. it possible to share like this? PLS help.

SK
Avatar of Maddy

ASKER

Hi Modus,

Yes, heavy thanks for Mr.it4soho was give though details explanation. However, I m not followed the post :-) for different reason. and i m solved configuration items too... thanks modus for you time.

have a nice day.

Thanks,
Sk.
Avatar of Maddy

ASKER

Hi Dan,

Thanks a ton for your solutions. Please keep rocking..


SK