Coder Social home page Coder Social logo

ntopng: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory about ntopng-docker HOT 3 CLOSED

reeseovine avatar reeseovine commented on August 18, 2024
ntopng: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory

from ntopng-docker.

Comments (3)

edgd1er avatar edgd1er commented on August 18, 2024

@katacarbix,

At present time, images are build for amd64 and armv7 cpu architectures. Im' not sure ( haven't tested) that armv7 is compatible on a aarch64. I tried for another project to run a 32bit image on a 64bit kernel (Raspian OS, config.txt arm64_bit=1). the mongoDb is failing to access the memory.

on an amd64 running image, i have:

/# dpkg -l ntopng libpcap*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name             Version          Architecture Description
+++-================-================-============-==============================================
ii  libpcap0.8:amd64 1.8.1-6          amd64        system interface for user-level packet capture
un  libpcap0.8-dev   <none>           <none>       (no description available)
ii  ntopng           4.3.210705-14833 amd64        Web-based traffic monitoring.
/# dpkg --print-architecture
amd64

as for the arm (Rpi3), I have the same issue:

ntopng_1  | + ntopng -w 0.0.0.0:27833 -r localhost:6379 -Z /monitor
ntopng_1  | ntopng: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory
ntopng_redis_1 exited with code 1

the libpcap needed package is added when building for amd64 but not for arm.
the problem is not specific to Arch linux, nor arm64 architecture.
As I thought an Rpi wouldn't be powerfull enough to run ntopng, I didn't test it. :(

I'll have to look into that.

from ntopng-docker.

edgd1er avatar edgd1er commented on August 18, 2024

@katacarbix , you may try to fetch the last docker image. I have tested that image on a Rpi 2 (Raspbian GNU/Linux 10 (buster) / armv7l). At least, ntopng is running.

In the debian-slim armv7 image, the libcap2 is not installed nor added when installing ntopng.

from ntopng-docker.

reeseovine avatar reeseovine commented on August 18, 2024

It works!! Thank you @edgd1er 🎉

from ntopng-docker.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.