Closed dllu closed 2 years ago
Hi, sorry for the late reply, I was on holidays.
I've had a look and I think that's because build.rs
loads libpcap during execution (to get the version number), but ignores LIBPCAP_LIBDIR
which is only used for linking.
Can you please try the fix I put on the branch libdir-in-build-rs
if this is still an issue for you.
This fix is now on master and in 0.9.0 which is available from crates.io. If it still doesn't work, please reopen the issue.
I installed
libpcap
via brew. I am on macOS Big Sur Version 11.2.1.As you can see, even though I set the
LIBPCAP_LIBDIR
perfectly, it is unable to findlibpcap
.However, this crate works perfectly on Linux.