Install Ethereal under red hat

Source: Internet
Author: User

Ethereal Installation

1. Download http://www.ethereal.com from ethereal-0.99.0-1.src.rpm

 

2. Run rpm-IVH ethereal-0.99.0-1.src.rpm

 

3. Run CD/usr/src/RedHat/specs.

 

4. Run rpmbuild-BP Ethereal. spec

 

5. Run CD/usr/src/RedHat/build.

 

6. Run the CD ethereal-0.99.0

 

7. Run./configure (it is possible that libpcap does not exist and there is no installation. The installation steps are shown below)

 

8. Run make

 

9. Run make install

 

 

Libpcap Installation

1. Download libpcap-1.1.1.tar.gz from http://www.tcpdump.org/

 

2. Run tar zxvf libpcap-1.1.1.tar.gz

 

3. Run./configure -- prefix =/usr -- enable-shared

 

4. Run./make

 

5. Run./make install

 

 

Note: (The following is from the Internet)

1. Open the web site: www.tcpdump.org/download the libpcap-1.0.0.tar.gz (512.0kb) package, unzip the file with the command tar zxvf libpcap-1.0.0.tar.gz, and put it in a custom installation directory.

2. Open the web site: flex.sourceforge.net/download the flex-2.5.35.tar.gz (1.40 MB) package, decompress the file through the tar zxvf flex-2.5.35.tar.gz, and put it in the preceding custom installation directory.

Note: If this file is not compiled and installed, an error message "Configure: Error: your operating system's Lex is insufficient to compile Libpcap." appears when you compile and install Libpcap.

3. Open the URL: ftp.gnu.org/gnu/bison/ download the bison-2.4.1.tar.gz (1.9 MB) package, unzip the file through the tar zxvf bison-2.4.1.tar.gz, and put it in the aforementioned custom installation directory.

Note: If this file is not compiled and installed, "Configure: Warning: don't have both flex and bison" will appear when libpcap is compiled and installed; reverting to lex/YACC checking for capable Lex... insufficient "error message.

4. Open the web site: ftp.gnu.org/gnu/m4/ download the m4-1.4.13.tar.gz (1.2 MB) package, unzip the file through the tar zxvf m4-1.4.13.tar.gz, and put it in the above custom installation directory.

Note: If this file is not compiled and installed, the "Configure: Error: GNU M4 2.4.1 is required" error message will appear when you compile and install bison-1.4.

Then go to the directory m4-1.4.13, Bison-2.4.1, flex-2.5.35, libpcap-1.0.0 and execute the following command:

(SUDO)./configure

(SUDO) make

(SUDO) make install

Note: The brackets are optional.

After the command is complete, Libpcap network packet capture interface can be used.

 

In addition:

When compiling source files, you need to specify the Link Library for compiling.

# GCC test. C-o Test-lpcap

Note: When running such programs, you must run them as root because the system does not allow non-root users to perform network operations.

 

 

Related Article

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.