先进行nmap的下载:
进行解压:
如缺少 bz2:
yum install bzip2 或 pip install bzip2
再继续解压:
tar -xvf 包名
进入解压后的文件夹,执行:
./configure
若报错“configure: error: no acceptable C compiler found in $PATH”,说明未安装gcc,gcc安装命令为:
yum install gcc
.
执行:
make
若报错“-bash: make: command not found”,则安装gcc:
yum install g++
或#yum install gcc-c++
执行:
make install
检测是否安装成功:
nmap -v