kali linux安装libnids

1、安装libpcap

2、安装libnet

3、安装libnids
执行 ./configure时出错
checking for GLIB… configure: error: The pkg-config script could not be found……

apt-get install pkg-config

checking for GLIB… configure: error: Package requirements (glib-2.0>= 2.2.0) were not met. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard
prefix.

sudo apt-get install libglib2.0-dev

如果无法下载安装,则需要修改kali linux的源 和更新
leafpad /etc/apt/sources.list

#(其实系统本身就自带了更新源,去掉其注释也是可以的,现在官方源的下载速度也还ok,下面的三选一亦可)
  #kali官方源
    deb http://http.kali.org/kali kali-rolling main non-free contrib
    #中科大的源
    deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
    deb http://mirrors.ustc.edu.cn/kali kali-rolling main contrib non-free
    deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main contrib non-free
    deb http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free
    deb-src http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free
    #阿里云源
    deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
    deb http://mirrors.aliyun.com/kali-security/ kali-rolling main contrib non-free
    deb-src http://mirrors.aliyun.com/kali-security/ kali-rolling main contrib non-free
apt-get update
ape-get upgrade
apt-get dist-upgrade
apt-get clean

你可能感兴趣的:(GNU/Linux)