报错内容为
┌──(root💀kali)-[/usr/local/src/libpcap-1.9.0]
└─# ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/local/src/libpcap-1.9.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
这个是由于没有安装编译器造成的,需要执行命令如下:
sudo apt-get install --reinstall build-essential
sudo apt-get install --reinstall gcc
sudo dpkg-reconfigure build-essential
sudo dpkg-reconfigure gcc
问题完美解决