[KLUG Members] rpm wierdness

Scott Wood members@kalamazoolinux.org
Thu, 19 Jul 2001 20:30:15 -0700 (PDT)


--- Richard Zimmerman <richard@knbpower.com> wrote:
> I'm trying to install the latest and greatest snort 1.8p1
> 
> However, I keep getting the following:
> 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> - - - - - -
> [root@towaway /downloads]# rpm -Fvh snort-1.8p1-0.i386.rpm
> error: failed dependencies:
>         libpq.so.2.0 is needed by snort-1.8p1-0
> 
> [root@towaway /downloads]# cd /usr/lib
> 
> [root@towaway lib]# ls -al libpq*
[..]
> lrwxrwxrwx    1 root     root           12 Feb 15 13:46 libpq.so.2.0 ->
> libpq.so.2.1
> -rwxr-xr-x    1 root     root        79482 Aug 24  2000 libpq.so.2.1
> [root@towaway lib]#
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> - - - - - -
> 
> OK, so libpq.so.2.0 is installed on my system as a symbolic link to
> libpq.so.2.1.
> 
> Any ideas on why rpm dependency check can't see it?
> 
> TIA,
> 
> Richard

I have run into this many times before - especially when stalling
'out-of-my-distribution' RPMs (i.e. install mandrake, suse or mirror-contrib
rpm's on a redhat install, etc).  Don't quote me on this, but I think that rpm
refers to its database rather than the actual presence of the file(s) it needs.
 If for some reason it doesn't see an entry for libpq.so.2.0, it will think
it's not installed.  Simply override the dependencies (the second try) with
--nodeps once you have verified the file exists on your system.

I also run into this a lot if I upgrade to a 'newer than expected' library.  It
can be dangerous sometimes, but generally if I install a new 'major' version -
for example, I often upgrade ncurses beyond what the distribution supports -
from say ncurses-3.2 to ncurses-4.0, most of the old functionality is 'usually'
supported.

The clean way to fix this in many cases is to get the .src.rpm and do a:
 --rebuild
But if you just want a quick and grubby way to do it (once you fix any other
dependency problems and verify no other needed parts are missing), just run the
install again with --nodeps

Scott

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/