Nmap Development mailing list archives
Re: Compiling nmap on Red Hat
From: stripes <stripes () tigerlair com>
Date: Wed, 13 Jun 2012 15:19:08 -0400
Did you try to use yum to get the gcc-c++ or compat-gcc-34-c++ (34 represents the version, not sure what the latest one is) or compat-libstdc++? -Anne On Wed, Jun 13, 2012 at 12:44:22PM -0600, Francois Lachance wrote:
Alright, so I decided to try Rob's suggestion and install binaries. Wouldn't you know it, that doesn't work either. Missing dependency... [francois@cerberus Downloads]$ sudo rpm -vhU http://nmap.org/dist/nmap-6.00-1.i386.rpm Retrieving http://nmap.org/dist/nmap-6.00-1.i386.rpm error: Failed dependencies: libsvn_client-1.so.0 is needed by nmap-6.00-1.i386 Why do we have a dependency on the SVN client in nmap? By the way, I also tried to do the install of gcc and got the following: [francois@cerberus Downloads]$ sudo yum install gcc Loaded plugins: rhnplugin, security Setting up Install Process Package gcc-4.1.2-52.el5_8.1.x86_64 already installed and latest version Nothing to do So it looks like I have all of gcc already installed. Any Red Hat expert out there that can give me a clue? Thanks, Francois On Wed, Jun 13, 2012 at 10:50 AM, Rob Nicholls <robert () robnicholls co uk>wrote: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 <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/<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<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/
-- 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/
Current thread:
- Compiling nmap on Red Hat Francois Lachance (Jun 13)
- Re: Compiling nmap on Red Hat stripes (Jun 13)
- Re: Compiling nmap on Red Hat Francois Lachance (Jun 13)
- Re: Compiling nmap on Red Hat stripes (Jun 13)
- Re: Compiling nmap on Red Hat Rob Nicholls (Jun 13)
- Re: Compiling nmap on Red Hat Francois Lachance (Jun 13)
- Re: Compiling nmap on Red Hat stripes (Jun 13)
- Re: Compiling nmap on Red Hat Francois Lachance (Jun 13)
- Re: Compiling nmap on Red Hat Darren VanBuren (Jun 13)
- Re: Compiling nmap on Red Hat Marcus Haebler (Jun 13)
- Re: Compiling nmap on Red Hat Francois Lachance (Jun 13)
- Re: Compiling nmap on Red Hat stripes (Jun 13)
- Re: Compiling nmap on Red Hat Francois Lachance (Jun 13)