LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-19-2012, 09:58 PM   #1
unimous
LQ Newbie
 
Registered: Mar 2011
Location: Anhui Normal University
Distribution: Ubuntu
Posts: 18
Blog Entries: 1

Rep: Reputation: 0
Unhappy libwireshark.so.2: cannot open shared object file: No such file or directory


I am using ubuntu and learning computer networking using wireshark, but my wireshark seems to be to slow and always out of response, so I decide to download the source code, and recompile it.

Before today, my wireshark is installed through
Code:
apt-get install wireshark
.

So, I delete it by
Code:
apt-get remove wireshark
, and trying to delete all the files related to wireshark in my system, so I do this:
Code:
locate wireshark | grep -viE 'unimous' | xargs sudo rm -rf
.

And then, download wireshark's source code, ./configure, make, sudo make install.

When all the thing is done, I am trying to open wireshark using the command
Code:
sudo wireshark
, but this error happens:

Code:
wireshark: error while loading shared libraries: libwireshark.so.2: cannot open shared object file: No such file or directory
What is libwireshark.so.2?
What is libwireshark.so.2 's job?
I have compiled the all wireshark, but why there is still something that is missed?
 
Old 10-20-2012, 03:21 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,132
Blog Entries: 54

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
Quote:
Originally Posted by unimous View Post
my wireshark seems to be to slow and always out of response
How did you determine that was caused by that version of Wireshark?


Quote:
Originally Posted by unimous View Post
When all the thing is done, I am trying to open wireshark using the command
Code:
sudo wireshark
, but this error happens:
Code:
wireshark: error while loading shared libraries: libwireshark.so.2: cannot open shared object file: No such file or directory
Code:
# Locate the wireshark binary:
sudo which wireshark
# or if your databases are up to date:
sudo locate wireshark
# Now check where it expects the libraries:
ldd /path/to/where/you/located/wireshark
# * If you still have the directory you compiled the source code in then enter that directory and run:
make -n install 2>&1 | grep libwireshark.so
# to see where 'make install' would install it to.
# The configure --prefix default should be /usr/local so libs end up in /usr/local/lib.
# Now update ldconfig:
sudo ldconfig
# and see if it picks up the location:
sudo ldconfig -p|grep libwireshark
# 
# If it does not then edit and update:
echo /usr/local/lib >> /etc/ld.so.conf.d/usrlocal.conf
sudo ldconfig
sudo ldconfig -p|grep libwireshark
 
  


Reply

Tags
library, linux, wireshark


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libssl.so.10: cannot open shared object file: No such file or directory Iyyappan Linux - Server 5 07-20-2012 05:19 PM
[SOLVED] ??? Error: libXp.so.6: cannot open shared object file: No such file or directory castles Linux - Newbie 7 01-18-2012 12:49 PM
[SOLVED] cannot open shared object file: No such file or directory - but the file is there! Ook Slackware 5 08-24-2011 05:13 PM
cannot open shared object file: No such file or directory (0) SQLSTATE=00000?? suliman_shah Programming 3 08-23-2007 01:02 PM
libawt.so: libXp.so.6: cannot open shared object file: No such file or directory man26 *BSD 0 09-10-2004 08:34 AM


All times are GMT -5. The time now is 03:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration