khi gia

Dec 21, 2009 4:19pm

Compiling libpcap + flex + bison locally

To compile flex, bison and libpcap in a local folder, need to tweak a bit the build of libpcap:

> diff runlex.sh.orig runlex.sh
70c70
< if [ “${LEX}” = flex ]
—-
> if [ `basename “${LEX}”` = flex ]

Then:

V_LEX=”/my/local/folder/bin/flex -Ppcap_” \
V_YACC=”/my/local/folder/bin/bison -y -p pcap_” \
./configure —prefix=/my/local/folder

This is for:

Page 1 of 1