LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-26-2004, 04:44 PM   #1
amrogers3
Member
 
Registered: Jan 2004
Posts: 43

Rep: Reputation: 15
Configuration Error can't figure out!!


Hi,

I am trying to install NMAP on a RedHat 9.0 System. Everytime I try to compile I get the following error:

checking for type of 6th argument to recvfrom()... configure error:
Cannot find type for 6th arguement to recvfrom()

I have searched and searched from a solution but have yet to find anything.

AHHHH
 
Old 01-26-2004, 05:22 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Why are you trying to compile nmap ????
whats wrong with the NMAP RPM that comes with redhat ?

i cant remember what Disk is on,
but mount each one and have a look.

or use the redhat-config-packages tool
i think its in admin section ?
 
Old 01-26-2004, 05:30 PM   #3
amrogers3
Member
 
Registered: Jan 2004
Posts: 43

Original Poster
Rep: Reputation: 15
I didn't know that NMAP comes with Redhat. Is it on the disk? I have 3 redhat install disks. How do I find the redhat-config-packages-tool?

thanks so much for your help!!!! I am a newb so sorry for my ignorance.
 
Old 01-26-2004, 05:53 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
lol.... ohh okay, wasnt expecting a newb to be needing that particular tool sorry.

Okay... ill assume you were born yesterday lol

in a command propmt type
redhat-config-packages

then give it the root password.

have a look round the package groups (i think its in the admin or network section somwhere, look for the name NMAP (plus there is an NMAP Graphical user interface, install that too)

then click update, it will rpompt for the disks you need.

That works, but ive always had rpoblems with that method, somtimes it doesnt mount the cdrom properly blah blah blah and it takes SOO long to load up.

you can install rpm's via command line with
rpm -Uvh (path to rpm file)

U option meaning upgrade / install
v meaning verbose (explain whats happening in detail
h meaning use 20 '#' characters as a kind or primitive scroll bar.
 
Old 01-26-2004, 06:05 PM   #5
amrogers3
Member
 
Registered: Jan 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Thank you sooooooo much for the help.

I found a version of RedHat on the CDs. I tried to install but it said that it conflicts with the previous version that I tried to install. So now my question is how do I completely remove the previous version?

Thanks again for the help!!!! It is greatly appreciated!!!

-Aaron
 
Old 01-26-2004, 06:14 PM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
u mean u found a version of NMAP ?

what is the output of the following commands command

rpm -qa | grep nmap
whereis nmap
nmap --h
 
Old 01-26-2004, 06:20 PM   #7
amrogers3
Member
 
Registered: Jan 2004
Posts: 43

Original Poster
Rep: Reputation: 15
lol, yes, I meant nmap, doh!

here is the output...

[root@Tanto /]# rpm -qa | grep nmap
nmap-3.50-1
nmap-frontend-3.50-1

[root@Tanto /]# whereis nmap
nmap: /usr/bin/nmap /usr/share/nmap /usr/share/man/man1/nmap.1.gz

[root@Tanto /]# nmap --h
nmap: option `--h' is ambiguous
Nmap 3.50 Usage: nmap [Scan Type(s)] [Options] <host or net
list>
Some Common Scan Types ('*' options require root privileges)
* -sS TCP SYN stealth port scan (default if privileged (root))
-sT TCP connect() port scan (default for unprivileged users)
* -sU UDP port scan
-sP ping scan (Find any reachable machines)
* -sF,-sX,-sN Stealth FIN, Xmas, or Null scan (experts only)
-sV Version scan probes open ports determining service & app
names/versions
-sR/-I RPC/Identd scan (use with other scan types)
Some Common Options (none are required, most can be combined):
* -O Use TCP/IP fingerprinting to guess remote operating system
-p <range> ports to scan. Example range:
'1-1024,1080,6666,31337'
-F Only scans ports listed in nmap-services
-v Verbose. Its use is recommended. Use twice for greater effect.
-P0 Don't ping hosts (needed to scan www.microsoft.com and others)
* -Ddecoy_host1,decoy2[,...] Hide scan using many decoys
-6 scans via IPv6 rather than IPv4
-T <Paranoid|Sneaky|Polite|Normal|Aggressive|Insane> General
timing policy
-n/-R Never do DNS resolution/Always resolve [default: sometimes
resolve]
-oN/-oX/-oG <logfile> Output normal/XML/grepable scan logs to
<logfile>
-iL <inputfile> Get targets from file; Use '-' for stdin
* -S <your_IP>/-e <devicename> Specify source address or
network interface
--interactive Go into interactive mode (then press h for help)
Example: nmap -v -sS -O www.my.com 192.168.0.0/16 '192.88-90.*.*'
SEE THE MAN PAGE FOR MANY MORE OPTIONS, DESCRIPTIONS, AND EXAMPLES

[root@Tanto /]#
 
Old 01-26-2004, 06:43 PM   #8
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
lol, nmap is already installed !!!!!!!!!!

thats gotta be linux rule number one, if its a common tool, check that you dont already have it before u try to install it !

use the command
man nmap
for an instruction manual.

nmap is the command line program
the gui is called somthing similar...
nmap-X nmapX Xnmap or sumthing like that, look it up and read some how-to's
 
Old 01-26-2004, 06:46 PM   #9
amrogers3
Member
 
Registered: Jan 2004
Posts: 43

Original Poster
Rep: Reputation: 15
damn, told ya I was a newb! LOL!

haha, thanks for your help my friend!!!!

-Aaron
 
Old 01-26-2004, 06:52 PM   #10
amrogers3
Member
 
Registered: Jan 2004
Posts: 43

Original Poster
Rep: Reputation: 15
well, one last question for you.

I tried to remove nmap and seemed to have removed the wrong one. Now I can't use nmap --h and when I try to reinstall it says that it is already installed. Man, I really screwed this up. Any suggestions on what I should do?
 
Old 01-27-2004, 05:15 PM   #11
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
what did you do to remove it ?

again post the output of
rpm -qa | grep nmap

did you delete one of its files ?
or did u try to delete it with the `rpm -e nmap` method ?

read man rpm.

if you deleted it manually (so rpm still thinks its there, but is not)
you can force a re-install with --nodeps and --force arguments.

rpm -Uvh nmap* nmap-frontend* --nodeps --force (i think, read `man rpm`)
 
Old 01-28-2004, 10:52 AM   #12
amrogers3
Member
 
Registered: Jan 2004
Posts: 43

Original Poster
Rep: Reputation: 15
thank you for the help, I think I got it to work for the most part.

I am trying to install and configure Nmap, Hydra, and Nikto under Nessus so that all these applications will run when nessus is started. do you have any experience doing this?

I can't seem to be able to figure out how to move Nmap and Nikto to the Nessus directory. Again, I searched and searched for documentation but can't find anything on how to do this. This learning curve sucks bad.

thanks, i appreciate the help.
 
Old 01-28-2004, 06:05 PM   #13
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
what.. MOVE ???
you should never need to move anything from its default install place, this could case propblms.

what is Nessus , Nikto and Hydra ?

but yeah, there will be an easy solution to this problem that doesnt involve moving anything.

just explain in a little more detail please.
 
Old 01-29-2004, 09:53 AM   #14
amrogers3
Member
 
Registered: Jan 2004
Posts: 43

Original Poster
Rep: Reputation: 15
oh really?

didn't know that you shouldn't move things. I was trying to move a program into another program's subdirectory so that it would see the new program. You don't have to do this? Will those two programs be able to see each other if they are in different directories? I was trying to make Nessus see Nikto and Hydra. Nessus is a vulnerability scanner.

thanks for your help. -Aaron
 
Old 01-29-2004, 11:09 AM   #15
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
what do you mean see each other ?

any executable can be called by its name provided it lives in a $PATH directory.
if one program needs anouther, it will look for that other program in the directory its meant to be installed, moving it from the default may case that program to fail a dependency !
 
  


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
C++: compiler returns an error, can't figure out why frankie_DJ Programming 6 10-16-2005 10:15 AM
Trying to figure out error in file system check colmmagoo Linux - General 1 07-31-2004 10:50 PM
did anybody figure out mysql.sock error? needforspeed Linux - Software 5 02-21-2004 10:03 AM
Network configuration in vector linux, can't figure it out. ooagentbender Linux - Newbie 2 12-30-2003 06:04 AM
Another error during configuration yigal Mandriva 4 08-26-2003 03:34 PM


All times are GMT -5. The time now is 03:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration