LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Rpm Dependencies When Installing Snort (on Slackware) (https://www.linuxquestions.org/questions/linux-software-2/rpm-dependencies-when-installing-snort-on-slackware-184755/)

Godu 05-23-2004 05:29 AM

Rpm Dependencies When Installing Snort (on Slackware)
 
Help Needed ...
[excuse the english]

Ive installed red hats RPM on my slackware so I can install "snort" which for some reason comes only in RPMs.

when I try to "rpm -Uvh /home/godu/software/snort.rpm"
I get :
error: failed dependencies:
pcre is needed by snort-2.1.2-2
/bin/sh is needed by snort-2.1.2-2
/bin/sh is needed by snort-2.1.2-2
/bin/sh is needed by snort-2.1.2-2
/bin/sh is needed by snort-2.1.2-2
/bin/sh is needed by snort-2.1.2-2
libc.so.6 is needed by snort-2.1.2-2
libc.so.6(GLIBC_2.0) is needed by snort-2.1.2-2
libc.so.6(GLIBC_2.1) is needed by snort-2.1.2-2
libc.so.6(GLIBC_2.3) is needed by snort-2.1.2-2
libm.so.6 is needed by snort-2.1.2-2
libnsl.so.1 is needed by snort-2.1.2-2
libpcap.so.0.6.2 is needed by snort-2.1.2-2

I have to confess Im a bit of newbe to linux and Ive never installed an RPM before so I dont understand what this means.
I tried to "slocate" pcre to see if I have it on my system and found a bin called pcretest but is the rpm searching for bins or what ?
I also know I have a /bin/sh (its a symbolic link I belive) so I dont understand whats its yelling about.
I didnt check for the others ...

Can someone give me some pointers ... Im lost .

jailbait 05-23-2004 06:50 PM

"t is the rpm searching for bins or what ?"

When rpm is searching for dependencies it only looks in the rpm data base. It does not go looking through the file tree to see if the files are actually there. So rpm is reporting that snort depends on the listed files and these files are not registered in the rpm data base.

A file is registered in the rpm data base when the rpm package containing that file is installed. So it is possible for a file to exist but not be registered in the rpm data base if it was installed by any method other than rpm.

What you do in this situation is to check to see if the missing dependencies really exist. If they do then you use the rpm --nodeps parameter to tell rpm to install the package anyway in spite of whatever dependencies that rpm thinks are missing.

rpm --nodeps -i /home/godu/software/snort.rpm

See:
man rpm

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Godu 05-24-2004 09:03 AM

First, thanks for the answer and the explanation about rpm.
What you said makes sense since I only installed RPM for snort`s installation (it didnt come with my slackware) so its database was probably empty.
Unfortunetly after I did the "rpm --nodeps" I got a Segmentation Error ....

I looked at the man page and did some googeling and found out that alot of ppl run into the segementation problem but I didnt manage to find exactly what that means . Maybe you know ?

Anyways, I looked again at snort.org and found a tar.gz file.
I took the rpm tossed it out the windows, extracted the tar, did some ./configure , make, make install and voula ! had snort runnin in no time.

Last time Im using RPM !


All times are GMT -5. The time now is 05:35 AM.