Submitted by ramez.hanna on Tue, 04/01/2005 - 10:05.
( categories: Networking and Servers)

i want to update samba on my server (it is an rpm based distro). i installed samba-3.0.8-1 and now i want to update it. so i downloaded the rpm and i did a #rpm -Uvh samba-3.0.9-1.rpm now i have a dependency error stating that it needs liblber.so.2 that is missing, doing a #slocate liblber.so.2 i can find it in /usr/lib. the question is how to tell my system where to find it?
i did #ldconfig -v /usr/lib but didn't fix it

Alaa's picture
Submitted by Alaa on Tue, 04/01/2005 - 11:09.

but why the hell are you resolving dependencies manually, you should use your distros package management tools to do updates for you.

in mandrake its enough to run

# urpmi samba

to upgrade after you configure the proper package sources

also in mandrake you can query the uninstalled packages database to see which package provides any particular file.

here is the result on my installation

$ urpmf liblber
libldap2:/usr/lib/liblber.so.2

this means libldap2 contains the file you're looking for.

cheers, Alaa


http://www.manalaa.net "i`m feeling for the 2nd time like alice in wonderland reading el wafd"


ramez.hanna's picture
Submitted by ramez.hanna on Tue, 04/01/2005 - 12:27.

thank you alaa for your reply but i don\t use mandrake i'm using centos so io have yum and doing yum gives the same error. and i also want to know how to it manually (for the sake of knowledge)


the best things in life are free --- so as myself


MohammedSameer's picture
Submitted by MohammedSameer on Fri, 07/01/2005 - 04:05.

If you are sure that the shared object is there, force no dependencies when installing the RPM via the "--nodeps" switch.

-- I was known as Uniball!
Katoob Main developer
PekSysTray - GtkFlame


ramez.hanna's picture
Submitted by ramez.hanna on Sun, 09/01/2005 - 10:56.

thanks for the tip it worked :) but i wonder about why if it is thee the system can't see it


the best things in life are free --- so as myself


Alaa's picture
Submitted by Alaa on Sun, 09/01/2005 - 12:30.

binary package management systems do not scan the file system for dependencies, they only know whats in the package database.

so this either means you installed the dependency manually from source code, or you mixed RPMs that are not specifically made for your distro or version or you're using badly packaged RPMs

I still don't understand why you don't let the package manager handle software installation and dependencies for you.

cheers, Alaa


http://www.manalaa.net "i`m feeling for the 2nd time like alice in wonderland reading el wafd"


ramez.hanna's picture
Submitted by ramez.hanna on Sun, 09/01/2005 - 12:52.

actually it is YUM that is making this problem
i do yum update samba then i get a missing dependency that yum cannot resolve --> liblber.so.2
liblber.so is installed with openldap and i already have it installed
so it's probably that the ldap rpms were badly packed so i downloaded the rpms from samba .org and installed them with rpm --nodeps


the best things in life are free --- so as myself


Alaa's picture
Submitted by Alaa on Sun, 09/01/2005 - 16:17.

cheers, Alaa


http://www.manalaa.net "i`m feeling for the 2nd time like alice in wonderland reading el wafd"


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.