1. 程式人生 > >centos6.9 環境中安裝 wireshark2.4(tshark)

centos6.9 環境中安裝 wireshark2.4(tshark)

背景:在centos6.9中使用wireshark,執行yum install wireshark 命令後,版本為1.8,相比1.8,wireshark(tshark)版本2.4具備更豐富的輸出格式,在與elk結合使用時將更具有優勢。

1、環境
[[email protected] ~]# cat /etc/centos-release 
CentOS release 6.9 (Final)

2、開發環境
[[email protected] ~]# yum install -y gcc gcc-c++ gdb bison flex byacc
[[email protected]

~]# yum groupinstall "Development Tools"

3、libpcap 提供網路資料的採集功能
[[email protected] ~]# cd /opt
[[email protected] opt]# wget http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz
[[email protected] opt]# tar zxvf libpcap-1.8.1.tar.gz
[[email protected] opt]# cd libpcap-1.8.1/
# Conifgure:
[

[email protected] libpcap-1.8.1]# ./configure --prefix=/usr --libdir=/usr/lib64
# Install:
[[email protected] libpcap-1.8.1]# make && make install

4、GLib 是為用c寫的庫及應用程式提供服務的,在安裝它之前,必須安裝 libffi、PCRE、gettext、python27。
   libffi 是為各種呼叫準備的高階介面
[[email protected] ~]# cd /opt
[[email protected]

opt]# wget https://sourceware.org/ftp/libffi/libffi-3.2.1.tar.gz
[[email protected] opt]# tar zxvf libffi-3.2.1.tar.gz
[[email protected] opt]# cd libffi-3.2.1/
[[email protected] libffi-3.2.1]# ./configure --prefix=/usr --libdir=/usr/lib64 --disable-static
[[email protected] libffi-3.2.1]# make && make install
   PCRE 是一個相容perl的正則表示式庫
[[email protected] ~]# cd /opt
[[email protected] opt]# wget https://ftp.pcre.org/pub/pcre/pcre-8.41.tar.gz
[[email protected] opt]# tar zxvf pcre-8.41.tar.gz
[[email protected] opt]# cd pcre-8.41/
[[email protected] pcre-8.41]# ./configure --prefix=/usr --libdir=/usr/lib64 --docdir=/usr/share/doc/pcre-8.41  --enable-unicode-properties --enable-pcre16 --enable-pcre32 --enable-pcregrep-libz --enable-pcregrep-libbz2 --enable-pcretest-libreadline --disable-static  --enable-utf8  
[[email protected] pcre-8.41]# make && make install
注意一定要加上 --enable-utf8 ,否則在安裝 glib時會報錯,報錯資訊如下
checking for PCRE... yes
checking for Unicode support in PCRE... no
configure: error: *** The system-supplied PCRE does not support Unicode properties or UTF-8.
安裝完成可以用 pcretest -C 檢查
如果出現 **Cannot --enable-pcregrep-libbz2 because bzlib.h was not found**    ,則說明需要安裝bzip2
[[email protected] pcre-8.41]# yum install -y bzip2 bzip2-devel
如果出現 ** Cannot --enable-pcregrep-libz because zlib.h was not found  ,則說明需要安裝zlib
[[email protected] pcre-8.41]# yum install -y zlib zlib-devel
如果出現 ** Cannot --enable-pcretest-readline because readline/readline.h was not found  ,則說明需要安裝 readline
[[email protected] pcre-8.41]# yum install -y readline readline-devel
如果出現
configure: error: 
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html)
則說明需要安裝 gettext,安裝結束後可用 gettext -V 來檢查
[[email protected] ~]# cd /opt
[[email protected] opt]# wget http://ftp.gnu.org/pub/gnu/gettext/gettext-latest.tar.gz
[[email protected] opt]# tar zxvf gettext-latest.tar.gz
[[email protected] opt]# cd gettext-0.19.8.1/
[[email protected] gettext-0.19.8.1]# ./configure --prefix=/usr --libdir=/usr/lib64
[[email protected] gettext-0.19.8.1]# make && make install
安裝完python27,必須使用 Software Collections Repository (scl) 進行更新
[[email protected] ~]# yum install centos-release-scl 
[[email protected] ~]# yum install python27  
[[email protected] ~]# scl enable python27 bash     
下面是GLib  的安裝 
[[email protected] ~]# cd /opt
[[email protected] opt]# wget http://ftp.gnome.org/pub/gnome/sources/glib/2.54/glib-2.54.0.tar.xz
[[email protected] opt]# xz -d glib-2.54.0.tar.xz
[[email protected] opt]# tar -xvf glib-2.54.0.tar
[[email protected] opt]# cd glib-2.54.0/
[[email protected] glib-2.54.0]# ./configure --prefix=/usr --libdir=/usr/lib64 --enable-libmount=no
[[email protected] glib-2.54.0]# make && make install

5、libgcrypt 是一個通用的加密庫
[[email protected] ~]# cd /opt
[[email protected] opt]# wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.8.1.tar.bz2
[[email protected] opt]# tar -jxvf libgcrypt-1.8.1.tar.bz2
[[email protected] opt]# cd libgcrypt-1.8.1/
[[email protected] libgcrypt-1.8.1]# ./configure --prefix=/usr --libdir=/usr/lib64
[[email protected] libgcrypt-1.8.1]# make && make install
如果出現 
checking for gpg-error-config... no
checking for GPG Error - version >= 1.25... no
configure: error: libgpg-error is needed.
                See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .
則說明需要安裝 libgpg-error
[[email protected] ~]# cd /opt
[[email protected]ost opt]# wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.27.tar.gz
[[email protected] opt]# tar zxvf libgpg-error-1.27.tar.gz
[[email protected] opt]# cd libgpg-error-1.27/
[[email protected] libgpg-error-1.27]# ./configure --prefix=/usr --libdir=/usr/lib64
[[email protected] libgpg-error-1.27]# make && make install

6、 Wireshark
[[email protected] ~]# cd /opt
[[email protected] opt]# wget https://www.wireshark.org/download/src/all-versions/wireshark-2.4.1.tar.xz
[[email protected] opt]# xz -d wireshark-2.4.1.tar.xz
[[email protected] opt]# tar -xvf wireshark-2.4.1.tar
[[email protected] opt]# cd wireshark-2.4.1/
[[email protected] wireshark-2.4.1]# ./configure --prefix=/usr --libdir=/usr/lib64  --with-gtk=no  --with-qt=no --disable-wireshark --sysconfdir=/etc
[[email protected] wireshark-2.4.1]# make
[[email protected] wireshark-2.4.1]# make install 
[[email protected] wireshark-2.4.1]# unset FILENAME
退出,重新登入 
[[email protected] opt]# tshark --version
Running as user "root" and group "root". This could be dangerous.
TShark (Wireshark) 2.4.1 (v2.4.1)

Copyright 1998-2017 Gerald Combs <[email protected]> and contributors.
License GPLv2+: GNU GPL version 2 or later <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with libpcap, without POSIX capabilities, without libnl, with
GLib 2.54.0, with zlib 1.2.3, without SMI, without c-ares, without Lua, without
GnuTLS, with Gcrypt 1.8.1, without Kerberos, without GeoIP, without nghttp2,
without LZ4, without Snappy, without libxml2.

Running on Linux 2.6.32-696.el6.x86_64, with Intel(R) Xeon(R) CPU          
E5520  @ 2.27GHz (with SSE4.2), with 3822 MB of physical memory, with locale
en_US.UTF-8, with libpcap version 1.8.1, with Gcrypt 1.8.1, with zlib 1.2.3.

Built using gcc 4.

相關推薦

centos6.9 環境安裝 wireshark2.4(tshark)

背景:在centos6.9中使用wireshark,執行yum install wireshark 命令後,版本為1.8,相比1.8,wireshark(tshark)版本2.4具備更豐富的輸出格式,在與elk結合使用時將更具有優勢。 1、環境 [[email p

Apache-Tomcat-9在centos7.4環境安裝部署

apache tomcat centos 首先要安裝Java 1.8 ,用到的是openJDK這個包。yum install java-1.8.0-openjdk -yjava環境安裝好了,下面是Tomcat9的安裝,先去官網下載二進制壓縮包,二進制包的好處是解開就能用,這是包地址http://m

centos6安裝2.4版本的HTTPd

httpd 由於httpd2.4版本是基於APR -1.4版本以上的,但centos6中的apr版本是1.3的,所以要想在centos6中安裝httpd2.4版本,要先編譯安裝apr-1.4以上的版本。第一部分 安裝apr-1.4+將所需要的安裝包用rz導入centos6中,(若沒有安裝szrz,可

ubuntu14.04安裝opencv2.4.9

https://blog.csdn.net/chcyj/article/details/78424372 http://jaist.dl.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.9/opencv-2.4.9.zip

CentOS6.5下原始碼安裝gcc-4.9.4

1、確認現有版本 # gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11) Copyright © 2010 Free Software Foundation, Inc. 本程式是自由軟體;請參

centos6.9環境下docker安裝

轉載:https://www.linuxidc.com/Linux/2018-02/150834.htm由於Docker要求執行的linux核心版本為3.8以上,因此,在安裝之前,要檢視一下宿主機作業系統的核心版本,否則如果是核心低於3.8,能夠成功安裝Docker,但進入D

ubuntu16.04安裝opencv2.4.9

2. 解壓到任意目錄     unzip opencv-2.4.9.zip 3.進入原始碼目錄     cd opencv-2.4.9 4. 事先安裝下列軟體     sudo apt-get install build-essential cmake 

[書接上一回]在Oracle Enterprise Linux (v5.7) 安裝DB - (4/4)

學習 查詢 src log 成功 尋找 image 需要 密碼 選擇自己創建的安裝數據庫路徑。 Sample Schemas 打鉤。 調整內存大小。 選擇官方建議的字符集編碼。 是否創建創建的腳本,如需要請

在VM安裝Android4.4連接小米手環 之 設置藍牙

nts water 你是 啟動 技術分享 mar oid fonts roi 1.首先須要一個藍牙適配器,手環要求是藍牙4.0 2.虛擬機的設置: 自己是這樣設置的 3.將藍牙適配器插入USB口,看下圖 說明虛擬機連接到藍牙,若是灰色的,能夠右擊 CONNEC

在VM安裝Android4.4連接小米手機 之 安裝小米手環APP

net 分享 class roi log pop b2c post apk 1.下載APP 在能夠上網的情況的,搜索 小米手環APP就能夠找到下載地址 2.安裝APP 進入終端 3.在終端按下圖紅色區域語句依次輸入。 先進入超級用戶 找到下載的A

在win10上的xampp集成環境安裝mongo擴展

logs pat b- -m 電腦 blog 信息 img mpp 按照網上搜索的下載對應文件後,在phpinfo裏面還是找不到mongo的擴展信息,後面也是請教同事幫忙解決: http://www.thegeekstuff.com/2015/10/php-mongodb-

centos6.9源碼編譯httpd2.4

編譯 httpd 簡介:Apache HTTP Server(簡稱Apache)是Apache軟件基金會的一個開放源碼的網頁web服務器;由於centos6默認安裝的是httpd2.2版本,不具有httpd2.4的新特性,為了在6版本上使用2.4版本的,從而能利用httpd2.4的新功能,更好的完成工

centos6.6使用yum安裝zabbix3.4

centos6.6 zabbix3.4 php5.6 mariadb10.2 nginx 環境Mysql: mariadb 10.2Php: 5.6Httpd: 2.2System: centos6.6 x86_64Zabbix: 3.4 yum install –y epel-relea

在阿裏雲的CentOS環境安裝配置MySQL

select aced ati ppi cto log alter completed for Welcome to Alibaba Cloud Elastic Compute Service ! [root@izbp19stm1x1k2io1e7r3tz ~]#

centos6.9源碼安裝wine3.0穩定版

centos wine3.0 源碼安裝 使用源代碼安裝Wine 3.0 第1步:安裝依賴包 我們需要用一些核心開發工具,如gcc, flex, bison, debuggers等來安裝‘Development Tools‘,這些軟件必須要編譯和構建新的包,使用YUM命令來安裝。 # yum -y

如何在virtualenv環境安裝指定的python版本

rtu python庫 link csdn category 空格 ott python2 項目 指定python版本:virtualenv -p python執行文件路徑 自定義虛擬環境名稱。如果文件路徑有空格,用引號。 如果不指定python版本,

Centos6.9下 yum 安裝 nginx1.10 + mysql5.6 + php5.6

php-fpm stat kcon ech tar led 開放 quick ... 一、準備工作1、檢查selinux是否為關閉狀態,不為disable需要改為disable。SELINUX=disabled 不為disabled 的話,則修改為 SELINUX=d

Hanlp 在Python環境安裝、介紹及使用

Hanlp HanLP是由一系列模型與演算法組成的Java工具包,目標是普及自然語言處理在生產環境中的應用。HanLP具備功能完善、效能高效、架構清晰、語料時新、可自定義的特點。 功能:中文分詞 詞性標註 命名實體識別 依存句法分析 關鍵詞提取新詞發現 短語提取 自動摘要 文字分類 拼音簡繁  

Stanford NLP 在Python環境安裝、介紹及使用

Stanford NLP Stanford NLP提供了一系列自然語言分析工具。它能夠給出基本的詞形,詞性,不管是公司名還是人名等,格式化的日期,時間,量詞,並且能夠標記句子的結構,語法形式和字詞依賴,指明那些名字指向同樣的實體,指明情緒,提取發言中的開放關係等。1.一個整合的語言分析工具集;2.進行快速,

centos6.9下yum安裝vsftpd

文章參考地址點選開啟連結 略有改動,添加了為每個使用者設定不同訪問目錄的配置方法 一、安裝vsftpd 安裝 vsftpd #yum -y install vsftpd 設定開機啟動 #chkconfig vsftpd on 檢視服務狀態 #se