contestjia 发表于 2015-04-13 21:15

PF_RING安装开发库遇到的问题~~帮帮忙吧,谢谢!

PF_RING的内核模块安装完了,能够modprobe
# 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
IP Defragment            : No
Socket Mode            : Standard
Transparent mode         : Yes
Total plugins            : 0
Cluster Fragment Queue   : 0
Cluster Fragment Discard : 0

现在该进行开发库的安装了,在/userland/lib下./configure,不报错,但是安装不上:
# ./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,就报错了:
# 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: *** Error 1

请各位前辈指教,哪儿操作失误吗?
页: [1]
查看完整版本: PF_RING安装开发库遇到的问题~~帮帮忙吧,谢谢!