1) error: /bin /bash: bison: command not found
Solutions: sudo apt-get install bison
2) error: zlib.h: No such file or directory
Solutions: sudo apt-get install zlib1g-dev
3) error: X11/Xlib.h: No such file or directory
error: Xatom.h: No such file or directory
Solutions: sudo apt-get install libx11-dev
4) error: /usr/bin/ld: cannot find -lncurses
Solutions: sudo apt-get install libncurses-dev
5) error: /bin/bash: flex: command not found
Solutions: sudo apt-get install flex
6) error: sh: gperf: not foundsh:
Solutions: sudo apt-get install bison
2) error: zlib.h: No such file or directory
Solutions: sudo apt-get install zlib1g-dev
3) error: X11/Xlib.h: No such file or directory
error: Xatom.h: No such file or directory
Solutions: sudo apt-get install libx11-dev
4) error: /usr/bin/ld: cannot find -lncurses
Solutions: sudo apt-get install libncurses-dev
5) error: /bin/bash: flex: command not found
Solutions: sudo apt-get install flex
6) error: sh: gperf: not foundsh:
Solutions: sudo apt-get install gperf
7) error: bin/bash: g++: command not found
Solutions: sudo apt-get install g++
本文列举了多种常见的编译错误及其解决方案,包括找不到bison命令、缺失zlib.h文件、X11/Xlib.h和Xatom.h文件未找到、链接时无法找到ncurses库、flex命令未找到、gperf未安装及g++命令缺失的情况,并提供了相应的apt-get安装指令来解决这些问题。
3280

被折叠的 条评论
为什么被折叠?



