Ubuntu12.04tls under the source code compilation installation Wireshark

Source: Internet
Author: User
Tags bz2 gtk automake

I. Environment and some source code descriptions

System: UBUNTU12.04TLS 64-bit

Source: wireshark-1.12.7.tar.bz2,libtool-2.4.6.tar.gz, libpcap-1.7.4.tar.gz

Installation path:/opt/wireshark


Second, installation steps

1. First install some dependent tools and libraries

sudo apt-get update first updates the software mirroring site

sudo apt-get install Flex

sudo apt-get install Bison

sudo apt-get install autoconf

sudo apt-get install Libqt4-dev

sudo apt-get install Libgtk2.0-dev

Install Libtool (use source installation):

(1) Decompression $tar-xzf libtool-2.4.6.tar.gz

(2) Enter the extracted directory $CD libtoo-2.4.6

(3) Installation trilogy $./configure; make; sudo make install


2. Installing Libcap

(1) Decompression $tar-xzf libpcap-1.7.4.tar.gz

(2) Enter the extracted directory $CD libpcap-1.7.4

(3) $./configure

(4) $make

(5) $sudo make install

3. Then unzip the Wiresharek source code, enter the decompression directory, to install the trilogy.

(1) $tar-XJF wiresharek-1.12.7.tar.bz2

(2) $CD wiresharek-1.12.7

(3) $./configure--prefix=/opt/wireshark--with-gtk2 (because GTK3 is used by default, use GTK2 is specified)

(4) $make

(5) $sudo make install


Three, the installation process encountered problems and solutions

(1) When installing Libpcap

<1> $./configure

Error:

Checkingfor Flex ... no

Checkingfor Bison ... no

Checkingfor capable Lex ... insufficient

Configure:error:Your operating system ' s Lex is insufficient to compile

Libpcap. Flex is a Lex replacement this has many advantages,including

Being able to compile libpcap. For more information, see

Http://www.gnu.org/software/flex/flex.html.

Solve:

$sudo apt-get Install Flex

<2> $make

Error:

./RUNLEX.SHLEX-OSCANNER.C SCANNER.L

MVSCANNER.C Scanner.c.bottom

Cat./scanner.c.top scanner.c.bottom > Scanner.c

Yacc-d Grammar.y

MAKE:YACC: Command not found

make:*** [GRAMMAR.C] Error 127

Solve:

$sudoapt-get Install Bison

(2) Compiling Wireshark

<1>$./autogen.sh

Error:

./autogen.sh:1:./autogen.sh:autoconf:not found

Youmust has autoconf 2.60 or later installed to compile Wireshark.

Downloadthe appropriate package for your Distribution/os,

Orget the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/

./autogen.sh:1:./autogen.sh:automake:not found

Youmust has automake 1.9 or later installed to compile Wireshark.

Downloadthe appropriate package for your Distribution/os,

Orget the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/

./autogen.sh:1:./autogen.sh:libtool:not found

Youmust has Libtool 1.4 or later installed to compile Wireshark.

Downloadthe appropriate package for your Distribution/os,

Orget the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/

Solve:

$sudoapt-get insall autoconf

Installing Libtool

<2>$./configure--prefix=/opt/wireshark

Error:

checkingfor pkg-config .../usr/bin/pkg-config

Checkingfor qt5core-version >= 4.6.0 ... No

Checkingfor qtcore-version >= 4.6.0 ... No

Configure:error:Qt is not available

Solve:

$sudoapt-get Install Libqt4-dev

Run $./configure–-prefix=/opt/wireshark again

Error:

gtk+3no Available

Solve:

$sudoapt-get Install Libgtk2.0-dev not found for the first time

Update the mirror site $sudoapt-get Update to find

$sudoapt-get Install Libgtk2.0-dev

Run $./configure--prefix=/opt/wireshark again

still error gtk+3 no available

Solve:

$./configure--prefix=/opt/wireshark--with-gtk2


This article is from the "Snow Dancer" blog, please be sure to keep this source http://happytree007.blog.51cto.com/6335296/1703693

Ubuntu12.04tls under the source code compilation installation Wireshark

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.