LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   libwireshark.so.2: cannot open shared object file: No such file or directory (http://www.linuxquestions.org/questions/linux-newbie-8/libwireshark-so-2-cannot-open-shared-object-file-no-such-file-or-directory-4175433157/)

unimous 10-19-2012 09:58 PM

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?

unSpawn 10-20-2012 03:21 PM

Quote:

Originally Posted by unimous (Post 4810434)
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 (Post 4810434)
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



All times are GMT -5. The time now is 06:22 AM.