나는 노력했다
make all
go build -o bettercap .
go build github.com/chifflier/nfqueue-go/nfqueue:
# pkg-config --cflags -- libnetfilter_queue
Package libnetfilter_queue was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnetfilter_queue.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libnetfilter_queue' found
pkg-config: exit status 1
go build github.com/google/gousb:
# pkg-config --cflags -- libusb-1.0
Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found
pkg-config: exit status 1
우분투 22.04를 사용하고 있습니다.
apt-cache search libnetfilter_queue
golang-github-chifflier-nfqueue-go-dev - Go bindings for NFQueue
libnetfilter-queue-dev - Development files for libnetfilter-queue1
libnetfilter-queue-doc - Documentation files for libnetfilter-queue1
libnetfilter-queue1 - Netfilter netlink-queue library
ruby-nfqueue - Wrapper around libnetfilter_queue using FFI
이 문제를 해결하는 방법? 무엇을 설치해야 합니까?
답변1
두 번째 오류를 해결하려면 libnetfilter-queue-dev
을(를) 설치해야 합니다 .libusb-1.0-0-dev
pkg-config
를 설치 apt-file
한 후 실행 하면 sudo apt update
다음과 같이 패키지를 직접 찾을 수 있습니다.
apt-file search libnetfilter_queue.pc