linux 下运行libnids,Linux下安装Libnids1.24

Libnids需要libpcap和libnet库的支持,首先安装这两个开发包。

1、安装 libpcap

下载libpcap包。

./configure

configure: error: yacc is insufficient to compile libpcap.

libpcap requires Bison, Berkeley YACC, or another YACC compatible with them.

apt-get install bison

E: Package ‘bison’ has no installation candidate

// kali 更新源修改

/etc/apt/source.list

apt-get update

apt-get upgrade

apt-get install bison

安装libpcap

./configure

make

make install

2、安装libnet

下载libnet

./configure

make

make install

3、安装libnids1.24

下载libnids1.24包

./configure

错误:

checking for pkg-config… no checking for GLIB… configure: error:

The pkg-config script could not be found or is too old. Make sure it

apt-get install pkg-config

./configure

hecking 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”

./configure

make

make install

root@God:~/Desktop/Libnids/libnids-1.24# ls /usr/local/lib/libni*

/usr/local/lib/libnids.a

安装完成。

4、gcc编译相关程序

gcc printall.c -o printall -lpcap -lnet -lnids -lgthread-2.0 -lglib-2.0

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值