我正在尝试安装 pcapsipdump,但是当我尝试制作时出现以下错误。安装了 libpcab 和 libpcap-devel,这是我通过“yum install libpcap libpcap-devel”完成的。我目前坚持如何进一步调试,所以我正在伸出援手。谢谢
[root@master-server pcapsipdump-code]# make
make-checks/libpcap.cpp: In function ‘int main()’:
make-checks/libpcap.cpp:2: error: ‘pcap_set_snaplen’ was not declared in this scope
g++ make-checks/libpcap.cpp -lpcap -o make-checks/libpcap
===
Required library not found: pcap
Please install it in your distribution-specific manner, e.g.:
yum install libpcap libpcap-devel
apt-get install tcpdump libpcap-dev
cd ~ports/net/libpcap && make install
===
make: *** [make-checks/libpcap] Error 1
yum install libpcap libpcap-devel 的输出
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.vooservers.com
* base: mirrors.vooservers.com
* extras: mirrors.vooservers.com
* updates: centos.hyve.com
Setting up Install Process
Package 14:libpcap-0.9.4-15.el5.i386 already installed and latest version
Package 14:libpcap-devel-0.9.4-15.el5.i386 already installed and latest version
Nothing to do
make debug 很长,但如果这有帮助,那么 end 在下面:
Considering target file `make-checks/all'.
File `make-checks/all' does not exist.
Considering target file `make-checks/cxx'.
Finished prerequisites of target file `make-checks/cxx'.
No need to remake target `make-checks/cxx'.
Considering target file `make-checks/libpcap'.
File `make-checks/libpcap' does not exist.
Finished prerequisites of target file `make-checks/libpcap'.
Must remake target `make-checks/libpcap'.
Putting child 0x09cec050 (make-checks/libpcap) PID 8162 on the chain.
Live child 0x09cec050 (make-checks/libpcap) PID 8162
make-checks/libpcap.cpp: In function ‘int main()’:
make-checks/libpcap.cpp:2: error: ‘pcap_set_snaplen’ was not declared in this scope