Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-17-2011, 11:57 AM   #1
LQ Newbie
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Error when installing nmap on Linux

I am new to Linux. I have RHEL4 running on a vmware workstation.
The following is my system info:
uname -a
2.6.9-89.EL #1 Mon Apr 20 10:23:08 EDT 2009 i686 i686 i386 GNU/Linux
I am trying to install nmap. But I have problems.
the following is an excerpt from my attempt: Please help.
rpm -vhU nmap-5.51-1.i386.rpm
error: Failed dependencies:
python >= 2.4 is needed by nmap-5.51-1.i386
rtld(GNU_HASH) is needed by nmap-5.51-1.i386[/B][/B]

Old 09-17-2011, 12:02 PM   #2
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
For future reference it helps if you put the command line results in [code] tags so it doesn't look all jumbled together.

The error is indicating that there are some dependencies that are not installed. I've never used RHEL, but is there a package manager available for you to install the software from? In Fedora I always used:
urpmi packagename
Using the package manager should automatically install dependent software for you instead of just failing. If you want to install it using the downloaded rpm, try just manually installing the dependent package from the package manager, which appear to be python and rtld. I don't know why it's saying you don't have python installed, unless it's just a really old version, because I have never seen a Linux system that didn't come with python out of the box.
Old 09-17-2011, 12:58 PM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,705

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
# 2
urpmi packagename : That's Mandriva / Mandrake only !

Later RHEL, Fedora : # yum install <package>

# 1 : Welcome to LQ.
If you can't get nmap from RHEL with 'up2date' :
rpm -Uvh nmap-3.70-1.i386.rpm nmap-frontend-3.70-1.i386.rpm

For nmap-5.51 : rpmbuild --rebuild nmap-5.51-1.src.rpm
.. And then install the "rpmbuild created" packages.


Last edited by knudfl; 09-17-2011 at 01:02 PM.
Old 09-17-2011, 01:53 PM   #4
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
Originally Posted by knudfl View Post
# 2
urpmi packagename : That's Mandriva / Mandrake only !
Yeah it's been a while, I forgot about yum,
Old 09-18-2011, 08:55 PM   #5
LQ Newbie
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
Thanks a million. It worked!

Old 09-19-2011, 10:35 AM   #6
Registered: Sep 2011
Posts: 32

Rep: Reputation: Disabled
Mark this topic [RESOLVED].

java socket

Last edited by linux2001; 01-26-2012 at 07:31 AM.


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
nmap ? how do i do nmap in linux ? command not found abbasakhtar Linux - Newbie 2 01-02-2011 01:08 AM
LXer: Learn how to use nmap, and nmap GUI, a great port scan tool LXer Syndicated Linux News 0 01-03-2008 09:10 AM
nmap error on solaris10 ANU Solaris / OpenSolaris 10 05-29-2006 04:22 AM
Problems installing nmap thejoe526 Linux - Security 3 06-11-2004 04:37 PM
NMAP configure error amrogers3 Linux - Software 2 02-15-2004 09:23 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:43 PM.

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