难以在linux(debian)上安装flex-2.5.33.tar.gz';制作';失败

难以在linux(debian)上安装flex-2.5.33.tar.gz';制作';失败,linux,makefile,installation,debian,flex-lexer,Linux,Makefile,Installation,Debian,Flex Lexer,我正在尝试安装“flex”。我没有安装以前版本的flex。我运行的是精简版linux,所以我没有apt-get或yum。要安装,我需要卸载flex包(flex-2.5.33.tar.gz)并运行./configure(它可以工作)。然而,后来我运行make,它失败了。我已经附加了./configure和make的输出,如果有帮助的话。我该怎么办?提前谢谢 -尼克 配置 meshLium-AX:/mnt/sda/flex-2.5.33# ./configure checking for a BS

我正在尝试安装“flex”。我没有安装以前版本的flex。我运行的是精简版linux,所以我没有apt-get或yum。要安装,我需要卸载flex包(flex-2.5.33.tar.gz)并运行./configure(它可以工作)。然而,后来我运行make,它失败了。我已经附加了./configure和make的输出,如果有帮助的话。我该怎么办?提前谢谢

-尼克

  • 配置

    meshLium-AX:/mnt/sda/flex-2.5.33# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether NLS is requested... yes checking for msgfmt... no checking for gmsgfmt... : checking for xgettext... no checking for msgmerge... no checking for style of include used by make... GNU checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking dependency style of gcc... gcc3 checking build system type... i586-pc-linux-gnu checking host system type... i586-pc-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking whether NLS is requested... yes checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for bison... no checking for byacc... no checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... no checking for xlC... no checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking whether ln -s works... no, using cp -p checking for ranlib... ranlib checking for bison... bison checking for help2man... help2man checking for gm4... no checking for gnum4... no checking for m4... /usr/local/bin/m4 checking for GNU m4... yes checking for indent... indent configure: WARNING: no indent program found: make indent target will not function checking for log in -lm... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for unistd.h... (cached) yes checking stdbool.h usability... yes checking stdbool.h presence... yes checking for stdbool.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking sys/params.h usability... no checking sys/params.h presence... no checking for sys/params.h... no checking cunistd usability... no checking cunistd presence... no checking for cunistd... no checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking for size_t... yes checking whether __func__ is declared... yes configure: creating ./config.status config.status: creating flex.spec config.status: creating Makefile config.status: creating doc/Makefile config.status: creating examples/Makefile config.status: creating examples/fastwc/Makefile config.status: creating examples/manual/Makefile config.status: creating m4/Makefile config.status: creating po/Makefile.in config.status: creating tools/Makefile config.status: creating tests/Makefile config.status: creating tests/TEMPLATE/Makefile config.status: creating tests/test-array-nr/Makefile config.status: creating tests/test-array-r/Makefile config.status: creating tests/test-basic-nr/Makefile config.status: creating tests/test-basic-r/Makefile config.status: creating tests/test-bison-yylloc/Makefile config.status: creating tests/test-bison-yylval/Makefile config.status: creating tests/test-c-cpp-nr/Makefile config.status: creating tests/test-c-cpp-r/Makefile config.status: creating tests/test-header-nr/Makefile config.status: creating tests/test-header-r/Makefile config.status: creating tests/test-include-by-buffer/Makefile config.status: creating tests/test-include-by-push/Makefile config.status: creating tests/test-include-by-reentrant/Makefile config.status: creating tests/test-multiple-scanners-nr/Makefile config.status: creating tests/test-multiple-scanners-r/Makefile config.status: creating tests/test-noansi-nr/Makefile config.status: creating tests/test-noansi-r/Makefile config.status: creating tests/test-prefix-nr/Makefile config.status: creating tests/test-prefix-r/Makefile config.status: creating tests/test-pthread/Makefile config.status: creating tests/test-string-nr/Makefile config.status: creating tests/test-string-r/Makefile config.status: creating tests/test-yyextra/Makefile config.status: creating tests/test-lineno-nr/Makefile config.status: creating tests/test-lineno-r/Makefile config.status: creating tests/test-linedir-r/Makefile config.status: creating tests/test-debug-r/Makefile config.status: creating tests/test-debug-nr/Makefile config.status: creating tests/test-mem-nr/Makefile config.status: creating tests/test-mem-r/Makefile config.status: creating tests/test-posix/Makefile config.status: creating tests/test-posixly-correct/Makefile config.status: creating tests/test-table-opts/Makefile config.status: creating tests/test-c++-basic/Makefile config.status: creating tests/test-bison-nr/Makefile config.status: creating tests/test-reject/Makefile config.status: creating tests/test-c++-multiple-scanners/Makefile config.status: creating tests/test-top/Makefile config.status: creating tests/test-rescan-nr/Makefile config.status: creating tests/test-rescan-r/Makefile config.status: creating config.h config.status: executing default-1 commands config.status: creating po/POTFILES config.status: creating po/Makefile config.status: executing depfiles commands meshLium AX:/mnt/sda/flex-2.5.33#/配置 正在检查BSD兼容的安装/usr/bin/install-c 正在检查生成环境是否正常。。。对 正在检查是否有呆滞。。。不 正在检查mawk。。。令人作呕 正在检查make是否设置$(make)。。。对 正在检查是否请求NLS。。。对 正在检查msgfmt。。。不 正在检查gmsgfmt…: 正在检查xgettext。。。不 正在检查msgmerge。。。不 正在检查make使用的包含样式。。。GNU 正在检查gcc。。。海湾合作委员会 正在检查C编译器的默认输出。。。a、 出去 正在检查C编译器是否工作。。。对 正在检查我们是否正在交叉编译。。。不 正在检查可执行文件的后缀。。。 正在检查对象文件的后缀。。。o 正在检查我们是否正在使用GNU C编译器。。。对 正在检查gcc是否接受-g。。。对 正在检查gcc选项以接受ANSI C。。。不需要 正在检查gcc的依赖项样式。。。gcc3 正在检查生成系统类型。。。i586 pc linux gnu 正在检查主机系统类型。。。i586 pc linux gnu 正在检查GCC使用的ld/usr/bin/ld 正在检查链接器(/usr/bin/ld)是否为GNU ld。。。对 正在检查共享库运行路径原点。。。完成 正在检查是否请求NLS。。。对 正在检查libc中的GNU gettext。。。对 正在检查是否使用NLS。。。对 正在检查gettext函数的来源。。。libc 检查野牛。。。不 正在检查byacc。。。不 正在检查flex。。。不 正在检查lex。。。不 正在检查yywrap-in-lfl。。。不 正在检查yywrap-in-ll。。。不 正在检查gcc。。。(缓存)通用条款 正在检查我们是否正在使用GNU C编译器。。。(缓存)是的 正在检查gcc是否接受-g。。。(缓存)是的 正在检查gcc选项以接受ANSI C。。。(缓存)不需要 正在检查gcc的依赖项样式。。。(缓存)gcc3 正在检查g++。。。不 检查C++…不 正在检查gpp。。。不 检查是否符合。。。不 正在检查抄送。。。不 正在检查cxx。。。不 正在检查cc++。。。不 检查cl。。。不 正在检查FCC。。。不 正在检查KCC。。。不 正在检查RCC。。。不 正在检查xlC\u r。。。不 正在检查xlC。。。不 检查我们是否使用GNU C++编译器…不 正在检查g++是否接受-g。。。不 正在检查g++的依赖项样式。。。没有一个 正在检查ln-s是否工作。。。不,使用cp-p 正在检查ranlib。。。兰利布 检查野牛。。。野牛 正在检查help2man。。。助手 正在检查gm4。。。不 正在检查gnum4。。。不 正在检查m4/usr/local/bin/m4 正在检查GNU m4。。。对 正在检查缩进。。。缩进 配置:警告:未找到缩进程序:使缩进目标不起作用 正在检查登录-lm。。。对 正在检查如何运行C预处理器。。。gcc-E 正在检查白鹭。。。grep-E 正在检查ANSI C头文件。。。对 正在检查sys/types.h。。。对 正在检查sys/stat.h。。。对 正在检查stdlib.h。。。对 正在检查字符串。h。。。对 正在检查内存。h。。。对 正在检查字符串。h。。。对 正在检查IntType.h。。。对 正在检查stdint.h。。。对 正在检查unistd.h。。。对 正在检查unistd.h。。。(缓存)是的 正在检查stdbool.h可用性。。。对 正在检查stdbool.h是否存在。。。对 正在检查stdbool.h。。。对 正在检查netinet/in.h可用性。。。对 正在检查netinet/in.h是否存在。。。对 正在检查netinet/in.h。。。对 检查限制。h可用性。。。对 正在检查限制。h存在。。。对 检查限制。h。。。对 正在检查sys/wait.h可用性。。。对 正在检查sys/wait.h是否存在。。。对 正在检查sys/wait.h。。。对 正在检查系统/参数h可用性。。。不 正在检查系统/参数h是否存在。。。不 正在检查系统/参数h。。。不 正在检查cunistd可用性。。。不 正在检查cunistd是否存在。。。不 正在检查cunistd。。。不 正在检查locale.h可用性。。。对 正在检查locale.h状态。。。对 正在检查区域设置。h。。。对 正在检查libintl.h可用性。。。对 正在检查libintl.h是否存在。。。对 正在检查libintl.h。。。对 正在检查regex.h可用性。。。对 正在检查regex.h是否存在。。。对 正在检查regex.h。。。对 正在检查大小\u t。。。对 正在检查是否已声明函数。。。对 配置:创建./config.status config.status:正在创建flex.spec config.status:正在创建Makefile config.status:正在创建doc/Makefile config.status:正在创建示例/Makefile config.status:正在创建示例/fastwc/Makefile config.status:正在创建示例/manual/Makefile config.status:正在创建m4/Makefile config.status:正在创建po/Makefile.in config.status:正在创建工具/Makefile config.status:正在创建测试/Makefile config.status:正在创建测试/TEMPLATE/Makefile config.status:正在创建测试/测试数组nr/Makefile config.status:正在创建测试/test-array-r/Makefile config.status:正在创建测试/test basic nr/Makefile config.status:正在创建测试/test-basic-r/Makefile config.status:正在创建测试/测试bison yylloc/Makefile config.status:正在创建测试/test bison yylval/Makefile config.status:正在创建测试/test-c-cpp-nr/Makefile config.status:正在创建测试/test-c-cpp-r/Makefile config.status:正在创建测试/测试头nr/Makefile config.status:正在创建测试/test-header-r/Makefile config.status:创建测试/test-include by-buffer/Makefile config.status:通过push/Makefile创建测试/测试包含 config.status:通过可重入/Makefile创建测试/测试包含 config.status:正在创建测试/测试多个扫描仪nr/Makefile config.status:正在创建测试/test-multiple-scanners-r/Makefile config.status:正在创建测试/test noansi nr/Makefile config.status:正在创建测试/test-noansi-r/Makefile config.status:正在创建测试/测试前缀nr/Makefile config.status:正在创建 meshLium-AX:/mnt/sda/flex-2.5.33# make cd . && /bin/sh /mnt/sda/flex-2.5.33/missing --run aclocal-1.7 -I m4 /mnt/sda/flex-2.5.33/missing: line 46: aclocal-1.7: command not found WARNING: `aclocal-1.7' is missing on your system. You should only need it if you modified `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && \ /bin/sh /mnt/sda/flex-2.5.33/missing --run automake-1.7 --gnits Makefile /mnt/sda/flex-2.5.33/missing: line 46: automake-1.7: command not found WARNING: `automake-1.7' is missing on your system. You should only need it if you modified `Makefile.am', `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && /bin/sh /mnt/sda/flex-2.5.33/missing --run autoconf /bin/sh ./config.status --recheck running /bin/sh ./configure --no-create --no-recursion checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether NLS is requested... yes checking for msgfmt... no checking for gmsgfmt... : checking for xgettext... no checking for msgmerge... no checking for style of include used by make... GNU checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking build system type... i586-pc-linux-gnu checking host system type... i586-pc-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking whether NLS is requested... yes checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for bison... no checking for byacc... no checking for flex... no checking for lex... no checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl.exe... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... no checking for xlC... no checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking whether ln -s works... no, using cp -p checking for ranlib... ranlib checking for bison... bison checking for help2man... help2man checking for gm4... no checking for gnum4... no checking for m4... /usr/local/bin/m4 checking for GNU m4... yes checking for indent... indent configure: WARNING: no indent program found: make indent target will not function checking for log in -lm... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for unistd.h... (cached) yes checking stdbool.h usability... yes checking stdbool.h presence... yes checking for stdbool.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking sys/params.h usability... no checking sys/params.h presence... no checking for sys/params.h... no checking cunistd usability... no checking cunistd presence... no checking for cunistd... no checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking for size_t... yes checking whether __func__ is declared... yes configure: creating ./config.status cd . && /bin/sh ./config.status Makefile depfiles config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: executing depfiles commands cd . && /bin/sh /mnt/sda/flex-2.5.33/missing --run autoheader perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). touch ./conf.in cd . && /bin/sh ./config.status config.h config.status: creating config.h make all-recursive make[1]: Entering directory `/mnt/sda/flex-2.5.33' Making all in . make[2]: Entering directory `/mnt/sda/flex-2.5.33' if gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I./intl -g -O2 -MT libmain.o -MD -MP -MF ".deps/libmain.Tpo" \ -c -o libmain.o `test -f 'libmain.c' || echo './'`libmain.c; \ then mv -f ".deps/libmain.Tpo" ".deps/libmain.Po"; \ else rm -f ".deps/libmain.Tpo"; exit 1; \ fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I./intl -g -O2 -MT libyywrap.o -MD -MP -MF ".deps/libyywrap.Tpo" \ -c -o libyywrap.o `test -f 'libyywrap.c' || echo './'`libyywrap.c; \ then mv -f ".deps/libyywrap.Tpo" ".deps/libyywrap.Po"; \ else rm -f ".deps/libyywrap.Tpo"; exit 1; \ fi rm -f libfl.a ar cru libfl.a libmain.o libyywrap.o ranlib libfl.a if gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I./intl -g -O2 -MT ccl.o -MD -MP -MF ".deps/ccl.Tpo" \ -c -o ccl.o `test -f 'ccl.c' || echo './'`ccl.c; \ then mv -f ".deps/ccl.Tpo" ".deps/ccl.Po"; \ else rm -f ".deps/ccl.Tpo"; exit 1; \ fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I./intl -g -O2 -MT dfa.o -MD -MP -MF ".deps/dfa.Tpo" \ -c -o dfa.o `test -f 'dfa.c' || echo './'`dfa.c; \ then mv -f ".deps/dfa.Tpo" ".deps/dfa.Po"; \ else rm -f ".deps/dfa.Tpo"; exit 1; \ fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I./intl -g -O2 -MT ecs.o -MD -MP -MF ".deps/ecs.Tpo" \ -c -o ecs.o `test -f 'ecs.c' || echo './'`ecs.c; \ then mv -f ".deps/ecs.Tpo" ".deps/ecs.Po"; \ else rm -f ".deps/ecs.Tpo"; exit 1; \ fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I./intl -g -O2 -MT gen.o -MD -MP -MF ".deps/gen.Tpo" \ -c -o gen.o `test -f 'gen.c' || echo './'`gen.c; \ then mv -f ".deps/gen.Tpo" ".deps/gen.Po"; \ else rm -f ".deps/gen.Tpo"; exit 1; \ fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I./intl -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" \ -c -o main.o `test -f 'main.c' || echo './'`main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; \ else rm -f ".deps/main.Tpo"; exit 1; \ fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I./intl -g -O2 -MT misc.o -MD -MP -MF ".deps/misc.Tpo" \ -c -o misc.o `test -f 'misc.c' || echo './'`misc.c; \ then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; \ else rm -f ".deps/misc.Tpo"; exit 1; \ fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I./intl -g -O2 -MT nfa.o -MD -MP -MF ".deps/nfa.Tpo" \ -c -o nfa.o `test -f 'nfa.c' || echo './'`nfa.c; \ then mv -f ".deps/nfa.Tpo" ".deps/nfa.Po"; \ else rm -f ".deps/nfa.Tpo"; exit 1; \ fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I./intl -g -O2 -MT parse.o -MD -MP -MF ".deps/parse.Tpo" \ -c -o parse.o `test -f 'parse.c' || echo './'`parse.c; \ then mv -f ".deps/parse.Tpo" ".deps/parse.Po"; \ else rm -f ".deps/parse.Tpo"; exit 1; \ fi /bin/sh /mnt/sda/flex-2.5.33/missing --run flex `test -f scan.l || echo './'`scan.l /mnt/sda/flex-2.5.33/missing: line 46: flex: command not found WARNING: `flex' is missing on your system. You should only need it if you modified a `.l' file. You may need the `Flex' package in order for those modifications to take effect. You can get `Flex' from any GNU archive site. sed '/^#/ s|\.c|scan.c|' .c >scan.c sed: can't read .c: No such file or directory make[2]: *** [scan.c] Error 2 make[2]: Leaving directory `/mnt/sda/flex-2.5.33' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/sda/flex-2.5.33' make: *** [all] Error 2
    ./configure
    touch scan.c
    make