How to install Wireshark in Linux
Dear Folks,
I have seen in some places that some Fedora Core users are facing lots of installation issues while installing Wireshark Tool. I will tell you an easy method on how you can install Wireshark without messing up with anything.
Why is this guide for?
If suppose you have installed Wireshark through yum command line (and it showed installation successful), but still you are coming across with Gtk+ or some header file linking errors while opening Wireshark and its not opening the application then this guide is for you! Read the full post first and then go ahead! This guide can be followed for new installation of Wireshark as well but in that case you don’t have to follow Common procedure ‘a’ initially.
Common procedure for Method 1 and 2:
$ sudo yum uninstall wireshark Accept the message by pressing 'Y' at the command line parameter and your wireshark will be uninstalled successfully.
$ sudo yum install libpcap $ sudo yum install libpcap-devel
“wireshark-gnome” (2nd search result) display tool, click on Apply, Give your password and wait till it installs the wireshark-gnome
display packages completely.
Alternative of Step ‘c’:
$ sudo rpm -ivh wireshark-gnome-1.2.x.rpm
Method-1 (With user privileges):
wireshark-1.3.2.tar.gz. Then keep it in your Desktop folder and follow the as usual build procedure like below:
$ cd /home/[UserName]/Desktop/ $ tar -zxvf wireshark-1.3.2.tar.gz $ cd wireshark-1.3.2 $ ./configure $ make $ make install $ sudo updatedb [It will take some couple of minutes to update completely] $ sudo ldconfig $ sudo reboot Select your ethernet adapter and start capturing
NOTE: You may come across with some errors while building the package (while you use ‘make’ command with normal user privileges). Then in that case repeat all the above process from ‘03′ to ‘10′, but with “root” user privileges. Below is the process on how to do it:
Method-2 (With root privileges):
If the above method doesn’t work then with the root privileges you can follow the below procedure.
$ cd wireshark-1.3.2 $ su # ./configure # make # make install # updatedb # ldconfig # reboot # wireshark & Select your Ethernet adapter and start capturing
Please drop your suggestions/feedback on this post so that I can come up with some more valuable posts.
Hope, it helps.
Enjoy!
XyluX