Nmap Development mailing list archives
Re: Compiling nmap on Red Hat
From: Darren VanBuren <admin () theoks net>
Date: Wed, 13 Jun 2012 13:29:56 -0700
Have you done yum groupinstall "Development Tools"? This package group contains all necessary tools from Bison to GCC to Automake. This is much like build-essential on Debian machines, and will solve your problems. On Wed, Jun 13, 2012 at 1:26 PM, Francois Lachance <digitallachance () gmail com> wrote:
Anne, Thanks for your help. [francois@cerberus Downloads]$ sudo yum search gcc-c++ Loaded plugins: rhnplugin, security Warning: No matches found for: gcc-c++ No Matches found I did run sudo yum install compat-gcc-34-c++.x86_64 and it installed compat-gcc-34-c++ and its dependent package compat-gcc-34, but I still have the same error on make (g++ not found). Talking with someone else they mention that I have Red Hat Desktop and therefore would not be able to compile nmap. That doesn't add up to me, but whatever - I give up on Red Hat. I have access to a Windows 2008 R2 server so I'll run my scans from there instead. Thank you all for your help. On Wed, Jun 13, 2012 at 1:19 PM, stripes <stripes () tigerlair com> wrote: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 arebrandedRHEL) the other day, then added some additional packages fordevelopment,clients etc. and I was able to compile Nmap okay (equally, I've neverhadtrouble with building Nmap on Fedora in the past). A "yum install gcc" might progress things slightly for you, as IIRCg++ ispart 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 justneed tomake sure you have all the development packages you need if you want to compile anything (including other tools) on your host. An alternativemightbe to install a binary version if you just want the latest stableversionof 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'mnotthat 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 onmy 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 Iseem 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 inyourpath. > 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 triedgmakeinstead. > That seemed to work until it tried to use g++, which appearsto bemissing > on my system. I cannot for the life of me figure out how toinstallg++. There should be an RPM you can install. If you have yuminstalled,you could do yum search g++. > Anyone ever ran into this? I have not found any postings withthisproblem > 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/
_______________________________________________ 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)