RSG / Carnivore

Surveillance tool for data networks.
67 stars 18 forks source link

not working processing 4.3 macos (homebrew error?) #6

Open mrbbp opened 1 month ago

mrbbp commented 1 month ago

hello i'v this message in Processing Console.

MacOS 14.7 silicon M1

[org.rsg.carnivore.Log] setDebug: true
[org.rsg.carnivore.CarnivoreP5] starting carnivore core
[DevBPF] Checking network adaptors for promiscuous mode...YES
[org.rsg.carnivore.Core] Mac OS X (14.7), aarch64, 64 bit
[org.rsg.carnivore.Core] Running Java version 17.0.8
[org.rsg.carnivore.Core] Starting Carnivore Core version 9
[org.rsg.carnivore.net.Devices] Found network devices: {en0=Built-in Ethernet}
[net.sourceforge.jpcap.capture.PacketCapture] loading native library jpcap... jpcap-mac_arm64
A library used by this sketch relies on native code that is not available.
UnsatisfiedLinkError: /Users/xxx/Dropbox/processing4/libraries/carnivore/library/libjpcap-mac_arm64.jnilib: dlopen(/Users/xxx/Dropbox/processing4/libraries/carnivore/library/libjpcap-mac_arm64.jnilib, 0x0001): Library not loaded: /opt/homebrew/opt/libpcap/lib/libpcap.A.dylib
  Referenced from: <4B5D3826-3833-3900-8536-73E48DC20B50> /Users/xxx/Dropbox/processing4/libraries/carnivore/library/libjpcap-mac_arm64.jnilib
  Reason: tried: '/opt/homebrew/opt/libpcap/lib/libpcap.A.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libpcap/lib/libpcap.A.dylib' (no such file), '/opt/homebrew/opt/libpcap/lib/libpcap.A.dylib' (no such file)
UnsatisfiedLinkError: /Users/xxx/Dropbox/processing4/libraries/carnivore/library/libjpcap-mac_arm64.jnilib: dlopen(/Users/xxx/Dropbox/processing4/libraries/carnivore/library/libjpcap-mac_arm64.jnilib, 0x0001): Library not loaded: /opt/homebrew/opt/libpcap/lib/libpcap.A.dylib
  Referenced from: <4B5D3826-3833-3900-8536-73E48DC20B50> /Users/xxx/Dropbox/processing4/libraries/carnivore/library/libjpcap-mac_arm64.jnilib
  Reason: tried: '/opt/homebrew/opt/libpcap/lib/libpcap.A.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libpcap/lib/libpcap.A.dylib' (no such file), '/opt/homebrew/opt/libpcap/lib/libpcap.A.dylib' (no such file)
RSG commented 4 weeks ago

try installing libpcap via Terminal

brew install libpcap

i should make this more clear in the Carnivore instructions, my apologies -- but i believe libpcap must be installed manually. let me know if that works for you.

mrbbp commented 2 days ago

Sorry for my answer delay (shame) i have reinstall libcap, but the error is the same i've tried with the example zip sketch CP5 exemple3