A tortuous installation of Nmap in Redhat Enterprise Linux 5

Source: Internet
Author: User

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...
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.