Bettercap: error while loading shared libraries: libpcap.so.0.8

Created on 28 Feb 2018  Â·  3Comments  Â·  Source: bettercap/bettercap

Prerequisites

  • [x ] I read the README.
  • [ x] I am running the latest stable version.
  • [ x] I already searched other issues to see if this problem was already reported.
  • [ x] I understand I don't necessarily have to paste this Prerequisites section in the issue.

Description

Running the AMD64 release binary results in an error:

bettercap: error while loading shared libraries: libpcap.so.0.8: cannot open shared object file: No such file or directory

Environment

Fedora 27, 64bit

bettercap -debug
bettercap: error while loading shared libraries: libpcap.so.0.8: cannot open shared object file: No such file or directory

Steps to Reproduce

  1. Download release
  2. chmod 755 ./bettercap
  3. Error while loading shared libraries: libpcap.so.0.8: cannot open shared object file: No such file or directory

Expected behavior: What you expected to happen
libpcap is installed:

/usr/lib64/libpcap.so.1
/usr/lib64/libpcap.so.1.8.1

Actual behavior: What actually happened

It did not find libpcap

♥ ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY ♥

compilation issue

Most helpful comment

For other people having this issue, here's specifically what I did to solve it:

$ locate libpcap
/usr/lib64/libpcap.so <-- was one among many results for me
$ cd /usr/lib64/ # go to that directory
$ sudo ln -s libpcap.so libpcap.so.0.8 # create a symlink to libpcap.so.0.8 from libpcap.so (or whatever you actually have instead)
$ cd - # go back to your bettercap directory

All 3 comments

Can you try to symlink it from your version?

For other people having this issue, here's specifically what I did to solve it:

$ locate libpcap
/usr/lib64/libpcap.so <-- was one among many results for me
$ cd /usr/lib64/ # go to that directory
$ sudo ln -s libpcap.so libpcap.so.0.8 # create a symlink to libpcap.so.0.8 from libpcap.so (or whatever you actually have instead)
$ cd - # go back to your bettercap directory

@asjadsyed I ran into this same issue when trying to use https://github.com/jclehner/nmrpflash
Your solution worked for me too, thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vasiliyph picture vasiliyph  Â·  4Comments

Giorgiofox picture Giorgiofox  Â·  3Comments

fugitivus picture fugitivus  Â·  5Comments

feddgs picture feddgs  Â·  6Comments

khast3x picture khast3x  Â·  3Comments