Nmap Development mailing list archives

Re: Compiling nmap on Red Hat


From: Rob Nicholls <robert () robnicholls co uk>
Date: Wed, 13 Jun 2012 17:50:02 +0100

I went for a Desktop installation of Centos 6.2 (effectively a rebranded RHEL) the other day, then added some additional packages for development, clients etc. and I was able to compile Nmap okay (equally, I've never had trouble with building Nmap on Fedora in the past).

A "yum install gcc" might progress things slightly for you, as IIRC g++ is part of gcc. You probably need to install several other client and development packages to get other parts of the Nmap project (e.g. Python) to work though.

Basically, you should be able to compile Nmap on Red Hat, you just need to make sure you have all the development packages you need if you want to compile anything (including other tools) on your host. An alternative might be to install a binary version if you just want the latest stable version of Nmap (and aren't compiling from SVN): http://nmap.org/dist/nmap-6.00-1.i386.rpm (I haven't tried this myself).

Rob

On 13.06.2012 16:56, stripes wrote:
At this point, Google is your friend :)

It looks like you might need the install media, but not being a RHEL
person myself, this is as far as I can go. However, it looks like
you're not alone in this problem.


https://www.linuxquestions.org/questions/linux-newbie-8/cant-install-g-on-new-red-hat-700670/

-Anne

On Wed, Jun 13, 2012 at 09:48:50AM -0600, Francois Lachance wrote:

I'm pretty much a noob at Red Hat and much prefer Debian (and I'm not
   that great at Debian either).  In any case:

   [francois@cerberus nmap-6.00]$ sudo find / -name g++ -print
   [francois@cerberus nmap-6.00]$ sudo yum search g++
   Loaded plugins: rhnplugin, security
   Warning: No matches found for: g++
   No Matches found
So it appears that I do not have an executable named g++ anywhere on
   my system and searching for g++ in yum returns nothing.
Surely someone else has tried to compile nmap on Red Hat before...
   Thanks,
   Francois
On Wed, Jun 13, 2012 at 9:29 AM, stripes <[1]stripes () tigerlair com>
   wrote:

On Wed, Jun 13, 2012 at 09:16:59AM -0600, Francois Lachance wrote: > I am trying to compile nmap 6.0 (fresh download of source) and I
   seem to be
   > missing something on my system.
   >
   > The error message is:

   > /bin/sh: g++: command not found

Looks like you need g++ installed, or if it is, put it in your
     path.

   > make: *** [makefile.dep] Error 127
   > [francois@cerberus nmap-6.00]$ gmake

   > gmake[1]: g++: Command not found

> As you can see, I did not have make available, so I tried gmake
   instead.
> That seemed to work until it tried to use g++, which appears to be
   missing
> on my system. I cannot for the life of me figure out how to install
   g++.

There should be an RPM you can install. If you have yum installed,
     you could do yum search g++.

> Anyone ever ran into this? I have not found any postings with this
   problem
   > in this list and Google is less than helpful.

     Let us know if that helps.
     -Anne
     --
     If you don't know there's a        (\`--/') _ _______ .-r-.
     trampoline in the room, you're      >.~.\ `` ` `,`,`. ,'_'~`.
     not going to dust the ceiling for  (v_," ; `,-\ ; : ; \/,-~) \
fingerprints. -Law & Order:SVU `--'_..),-/ ' ' '_.>-'
     )`.`.__.')
stripes at tigerlair dot com ((,((,__..'~~~~~~((,__..'
     `-..-'fL

References

   1. mailto:stripes () tigerlair com
--
If you don't know there's a        (\`--/') _ _______ .-r-.
trampoline in the room, you're      >.~.\ `` ` `,`,`. ,'_'~`.
not going to dust the ceiling for  (v_," ; `,-\ ; : ; \/,-~) \
fingerprints. -Law & Order:SVU      `--'_..),-/ ' ' '_.>-' )`.`.__.')
stripes at tigerlair dot com ((,((,__..'~~~~~~((,__..' `-..-'fL
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: