LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 05-23-2004, 06:29 AM   #1
Godu
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 9.1
Posts: 2

Rep: Reputation: 0
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 .
 
Old 05-23-2004, 07:50 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
"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

Last edited by jailbait; 05-23-2004 at 07:51 PM.
 
Old 05-24-2004, 10:03 AM   #3
Godu
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 9.1
Posts: 2

Original Poster
Rep: Reputation: 0
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 !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing from source -- dependencies installed via RPM kimchee411 Linux - Newbie 2 10-19-2004 03:40 AM
Installing *rpm on Slackware Linux ? ? ? caovankhanhvn Linux - Software 4 08-23-2004 01:58 AM
Failed dependencies error installing spamassassin-2.61-1.i386.rpm on RH7.0 camelia Linux - Newbie 1 01-20-2004 07:33 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 01:44 AM
RPM Dependencies MarcRJacobs Linux - Newbie 2 05-16-2003 11:06 PM


All times are GMT -5. The time now is 01:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration