nmap 安装问题

nmap 安装问题

安装了最新更新的 vanilla centos、gcc,然后 ./configure:....

Configuration complete.  Type make (or gmake on some *BSD machines) to compile.
[root@winxp nmap-5.51]# make
Makefile:375: makefile.dep: No such file or directory
g++ -MM -I./liblua -I./libdnet-stripped/include -I./libpcre  -I./libpcap -I./nbase -    I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://nmap.org\" -    DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -  D_FORTIFY_SOURCE=2 main.cc nmap.cc targets.cc tcpip.cc nmap_error.cc utils.cc idle_scan.cc   osscan.cc osscan2.cc output.cc payload.cc scan_engine.cc timing.cc charpool.cc services.cc      protocols.cc nmap_rpc.cc portlist.cc NmapOps.cc TargetGroup.cc Target.cc   FingerPrintResults.cc service_scan.cc NmapOutputTable.cc MACLookup.cc nmap_tty.cc  nmap_dns.cc traceroute.cc portreasons.cc xml.cc nse_main.cc nse_utility.cc nse_nsock.cc  nse_dnet.cc nse_fs.cc nse_nmaplib.cc nse_debug.cc nse_pcrelib.cc nse_binlib.cc nse_bit.cc  >   makefile.dep
/bin/sh: g++: command not found
make: *** [makefile.dep] Error 127
[root@winxp nmap-5.51]# yum install g++ -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.ash.fastserv.com
* base: centos.mirror.choopa.net
* extras: mirror.trouble-free.net
* updates: mirror.nexcess.net
Setting up Install Process
No package g++ available.
Nothing to do
[root@winxp nmap-5.51]# 

答案1

您应该安装 g++。

yum install g++

提示是“没有可用的 g++ 包”

相关内容