编译libpcap时遇到的问题

编译打包和其他
回复
perfectstorm
帖子: 25
注册时间: 2007-06-06 14:55

编译libpcap时遇到的问题

#1

帖子 perfectstorm » 2007-06-09 17:41

# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking gcc version... 3
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using gcc... yes
checking for u_int16_t using gcc... yes
checking for u_int32_t using gcc... yes
checking how to run the C preprocessor... gcc -E
checking for sys/ioccom.h... no
checking for sys/sockio.h... no
checking for ifaddrs.h... yes
checking for netinet/if_ether.h... yes
checking for ANSI ioctl definitions... yes
checking for ether_hostton... yes
checking for strerror... yes
checking for freeifaddrs... yes
checking for strlcpy... no
checking if --disable-protochain option is specified... enabled
checking packet capture type... linux
checking if --enable-ipv6 option is specified... no
checking for netpacket/packet.h... yes
checking Linux kernel version... 2
checking for flex... no
checking for bison... no
checking for capable lex... insufficient
configure: error: Your operating system's lex is insufficient to compile
libpcap. flex is a lex replacement that has many advantages, including
being able to compile libpcap. For more information, see
http://www.gnu.org/software/flex/flex.html .


我刚装了7.04,但是发现在ubuntu上编译很困难,好像什么都缺!
我尝试下载了flex,但是也不能编译通过也提示缺少东西,唉……
头像
nihui
帖子: 1746
注册时间: 2006-10-21 12:03
来自: Shanghai
联系:

#2

帖子 nihui » 2007-06-09 22:38

系统的 lex 不足以编译 libpcap。
下载安装 flex,flex-dev...
.

私人空间
附有 Magic Linux 2.1 最新开发日志~


미안하다, 사랑한다


欢迎来 #xfce-cn 中文频道~~
b5110
帖子: 4
注册时间: 2009-01-12 0:30

Re: 编译libpcap时遇到的问题

#3

帖子 b5110 » 2009-01-12 0:34

谢谢了
回复