免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1812 | 回复: 0
打印 上一主题 下一主题

[内核模块] PF_RING安装开发库遇到的问题~~帮帮忙吧,谢谢! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-04-13 21:15 |只看该作者 |倒序浏览
PF_RING的内核模块安装完了,能够modprobe
[root@localhost kernel]# cat /proc/net/pf_ring/info
PF_RING Version          : 6.0.2 ($Revision: exported$)
Total rings              : 0

Standard (non DNA) Options
Ring slots               : 4096
Slot version             : 16
Capture TX               : Yes [RX+TX]
IP Defragment            : No
Socket Mode              : Standard
Transparent mode         : Yes [mode 1]
Total plugins            : 0
Cluster Fragment Queue   : 0
Cluster Fragment Discard : 0

现在该进行开发库的安装了,在/userland/lib下./configure,不报错,但是安装不上:
[root@localhost lib]# ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking linux/net_tstamp.h usability... no
checking linux/net_tstamp.h presence... no
checking for linux/net_tstamp.h... no
checking librdi.h usability... no
checking librdi.h presence... no
checking for librdi.h... no
checking for pthread_setaffinity_np in -lpthread... yes
checking PF_RING ZC support... yes
checking Zero support... yes
checking if r/w locks are supported... yes
checking DNA support... yes
checking for librdi.h... (cached) no
checking for redisCommand in -lhiredis... no
checking for numa_available in -lnuma... yes
checking if libnuma is present... yes
checking for clock_gettime in -lrt... yes
checking for nl_handle_alloc in -lnl... no
checking for dag_get_stream_erf_types in -ldag... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ../examples/Makefile
config.status: creating ../examples_zc/Makefile
config.status: creating ../examples_libzero/Makefile
config.status: creating ../c++/Makefile
config.status: creating config.h
config.status: config.h is unchanged

之后make,就报错了:

[root@localhost lib]# make
ar x libs/libpfring_zero_x86_64.a
ar x libs/libpfring_dna_x86_64.a
ar x libs/libpfring_zc_x86_64.a
gcc -Wall -fPIC -I../../kernel -I../libpcap -D HAVE_ZERO -D HAVE_DNA -D HAVE_PF_RING_ZC   -D ENABLE_BPF   -D H
AVE_LIBNUMA -O2  -c pfring.c -o pfring.occ1: error: ../libpcap: not a directory
make: *** [pfring.o] Error 1

请各位前辈指教,哪儿操作失误吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP