Linux is a beginner. This installation has taken a lot of detours...
This file is only used as a personal study note.
The current RedHat Enterprise Linux 5 machine does not have the gcc environment installed, so it must be temporarily installed
For the installation process, refer to the previous log.
If gcc is installed but g ++ is missing, the following error occurs:
/Bin/sh: g ++: command not found
Make: *** [makefile. dep] Error 127
Refer to the previous article to install g ++.
[Root @ station nmap-5.35DC1] # tar jxvf nmap-5.35DC1.tar.bz2
[Root @ station nmap-5.35DC1] # cd nmap-5.35DC1
[Root @ station nmap-5.35DC1] #./configure -- prefix =/root/t00ls/nmap
[Root @ station nmap-5.35DC1] # make
[Root @ station nmap-5.35DC1] # make install
The preceding commands do not explain common installation commands.
So far, our nmap cannot run.
Environment variables need to be set
Most commands cannot be executed due to incorrect settings.
Later, I reset the following settings:
PATH = $ PATH:/usr/local/sbin:/usr/bin:/root/t00ls/namp/bin:/root/bin :.
The above environment variables are not explained much in windows.
After setting, our namp can be used properly...