./configure用ssldump代码库投掷错误

./configure throwing error with ssldump code base

本文关键字:错误 代码 configure ssldump      更新时间:2023-10-16

试图与ssldump合作从http://www.rtfm.com/ssldump/ssldump-0.9b3.tar.gz

获得了代码

并遵循安装的说明但是

./configure

投掷

checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
checking target system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether make sets ${MAKE}... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
configuring for
checking for pow in -lm... yes
checking for PCAP include files... found in /usr/include
checking for PCAP library...
configure: error: Couldn't find PCAP library: needed for ssldump

然后我尝试了

./configure --with-pcap-lib /usr/lib64/libpcap.so --with-pcap-inc /usr/include/pcap

但是遇到此错误。

configure: warning: /usr/lib64/libpcap.so: invalid host type
configure: warning: /usr/include/pcap: invalid host type
configure: error: can only configure for one host and one target at a time

,然后

./configure --enable-64bit=x86_64-unknown-linux-gnu --with-pcap-lib /usr/lib64/libpcap.so --with-pcap-inc /usr/include/pcap
configure: warning: /usr/lib64/libpcap.so: invalid host type
configure: warning: /usr/include/pcap: invalid host type
configure: error: can only configure for one host and one target at a time

我尝试了所有具有更新的.sub和.guess文件的命令的人,但仍然没有运气。

apt-get install build-essential openssl libssl-dev curl vim ca-certificates git libpcap0.8-dev libpcap0.8
./configure --prefix=/ --with-pcap-lib=/usr/lib/x86_64-linux-gnu/
make && make install