日期:2014-05-16  浏览次数:20901 次

安装unixodbc时抱错,如何解决?
我在安装unixodbc时抱错,如下:
[root@myname   unixODBC-2.2.1]#   ./configure   --prefix=/usr/local/unixODBC-2.2.1   --includedir=/usr/include   --libdir=/usr/lib   -bindir=/usr/bin   --sysconfdir=/etc
creating   cache   ./config.cache
checking   for   a   BSD   compatible   install...   /usr/bin/install   -c
checking   whether   build   environment   is   sane...   yes
checking   whether   make   sets   ${MAKE}...   yes
checking   for   working   aclocal...   missing
checking   for   working   autoconf...   missing
checking   for   working   automake...   missing
checking   for   working   autoheader...   missing
checking   for   working   makeinfo...   missing
checking   for   gawk...   gawk
checking   for   bison...   no
checking   for   byacc...   no
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   how   to   run   the   C   preprocessor...   gcc   -E
checking   for   flex...   no
checking   for   lex...   no
./configure:   line   1387:   flex:   command   not   found
checking   for   flex...   lex
checking   for   yywrap   in   -ll...   no
checking   lex   output   file   root...   ./configure:   line   1475:   lex:   command   not   found
configure:   error:   cannot   find   output   from   lex;   giving   up

还望高手指教,谢谢!

------解决方案--------------------
安装flex
------解决方案--------------------
搜索下flex和lex安装一下。
------解决方案--------------------
checking for flex... no
checking for lex... no