Compiling and installing Wireshark supporting SPDY protocol in Linux Mint

Source: Internet
Author: User
Tags linux mint

Make a script and save it as a file, sudo./xxx. sh.

#! /Bin/bash

# If sudo is not added, an error is prompted and the system exits.
If ["x $ (id-u )"! = X0]; then
Echo "Error: please run this script with 'sudo '."
Exit 1
Fi
# Install the dependent source code and tools
Sudo apt-get-yf install libssl-dev libpcap-dev git-core autoconf automake libtool bison flex gnome-core-devel libgnutls-dev
# Download and decompress wireshark source code
Wget http://www.wireshark.org/download/src/all-versions/wireshark-1.7.1.tar.bz2
Tar jxvf wireshark-1.7.1.tar.bz2
# Download the spdyshark extension package code
Git clone https://code.google.com/p/spdyshark/
Cp-r spdyshark/spdyshark wireshark-1.7.1/plugins/
# Patch
Cd wireshark-1.7.1
Patch-p1 <../spdyshark/spdyshark_build.patch
./Autogen. sh
# Configuration
./Configure -- with-ssl
# Solve the problem of treat warning as error during compilation
Sed-I/'am _ CFLAGS =-werror'/d wsutil/Makefile
Sed-I/'am _ CFLAGS =-werror'/d epan/ftypes/Makefile
# Solve the problem that the g_module_name function cannot be found during the link. This is a wireshark source code bug. The official solution is as follows:
Sed-I '370a @ GLIB_LIBS @ \ 'Makefile. am
# Compile
Make
# Installation. To package it into deb, sudo checkinstall should be used here
Sudo make install

To package the compiled program into deb for easy installation on other machines, you can install checkinstall first.
Sudo apt-get install checkinstall
Then, do not run the sudo make install command on the last line of the script, but like this:
Sudo checkinstall
Enter some package information as prompted to generate the deb installation package.

Finally, to run wireshark, you may need to export a path:

Export LD_LIBRARY_PATH =/usr/local/lib

Or first

Sudo ldconfig

To get the root permission, you can capture the package:

Sudo wireshark

Wireshark with spdy support. The SPDY option is available in Protocols of Preferences.

Note: The methods described in this article have passed the test under Ubuntu13 and Linux Mint 15.

The above methods are applicable to both 32bit and 64bit systems. 64-bit deb package download:

------------------------------------------ Split line ------------------------------------------

FTP address: ftp://ftp1.bkjia.com

Username: ftp1.bkjia.com

Password: www.bkjia.com

Compilation and installation of Wireshark supporting SPDY protocol under LinuxIDC.com \ 2014 \ Linux Mint in March

For the download method, see

------------------------------------------ Split line ------------------------------------------

Wireshark details: click here
Wireshark: click here

Simple use of Wireshark

Install Wireshark in Ubuntu 12.04

Starting Wireshark packet capture from common users in Linux

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.