分页: 1 / 1

编译libpcap时遇到的问题

发表于 : 2007-06-09 17:41
perfectstorm
# ./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,但是也不能编译通过也提示缺少东西,唉……

发表于 : 2007-06-09 22:38
nihui
系统的 lex 不足以编译 libpcap。
下载安装 flex,flex-dev...

Re: 编译libpcap时遇到的问题

发表于 : 2009-01-12 0:34
b5110
谢谢了