当前位置: 技术问答>linux和unix
安装unixodbc时抱错,如何解决?
来源: 互联网 发布时间:2016-02-01
本文导语: 我在安装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... /...
我在安装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
还望高手指教,谢谢!
[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和lex安装一下。
|
checking for flex... no
checking for lex... no
checking for lex... no
|
安装flex