RHEL下編譯wireshark源碼

系統環境:
[root@RedHat6 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.0 (Santiago)
所需軟件:
wireshark
http://www.wireshark.org/download.html

libpcap

http://www.tcpdump.org/

安裝配置:

  1. # tar jxvf wireshark-1.4.2.tar.bz2 /usr/local/src/ 
  2.  
  3. # cd wireshark-1.4.2 
  4.  
  5. # ./configure --prefix=/usr/local/wireshark-1.4.2  --with-pcap=/usr/local/libpcap-1.1.1/ 
  6. # make && make install

安裝遇到的問題:

checking for pcap-config... no
checking for extraneous pcap header directories... not found
checking pcap.h usability... no
checking pcap.h presence... no
checking for pcap.h... no
configure: error: Header file pcap.h not found; if you installed libpcap
from source, did you also do "make install-incl", and if you installed a
binary package of libpcap, is there also a developer's package of libpcap,
and did you also install that package?

解決:下載安裝libpcap軟件包,在編譯的時候添加--with-pcap選項即可。

效果如下圖所示:

備註:wireshark需要root權限才能運行

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章