试图与ssldump合作
从http://www.rtfm.com/ssldump/ssldump-0.9b3.tar.gz得到了代码
并遵循了INSTALL的指示
但
./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