1.錯誤
compress.c:14:58: fatal error: zlib.h: No such file or directory
compilation terminated.
解決:sudo apt-get install zlib1g-dev
2.錯誤
make[2]: bison: Command not found
解決:sudo apt-get install bison
3.錯誤
/bin/sh: flex: not found
make[2]: *** [lib/conf-lex.c] Error 127
解決:sudo apt-get install flex
4.錯誤
lib/libsensors.so: undefined reference to `sensors_yylex'
lib/libsensors.so: undefined reference to `sensors_yyin'
lib/libsensors.so: undefined reference to `sensors_lex_error'
lib/libsensors.so: undefined reference to `sensors_yylineno'
collect2: ld returned 1 exit status
make[2]: *** [prog/sensors/sensors] Error 1
解決:After installing flex and/or bison, you'll need to 'make clean' before 'make user' will work properly.
5.錯誤
/bin/sh: gmake: not found
make[3]: *** [clean] Error 1
原因:在ubuntu中已經取消掉了gmake,都用make代替。
解決:
$ sudo ln -s /usr/bin/make /usr/bin/gmake
6.錯誤
(cd basis/build/linux-am34-bluraypan; sh build_me.sh -c -b -j -L lex)
[: 133: unexpected operator
[: 133: unexpected operator
***Error: DirectFB path point to an invalid path
Hint: you can set DirectFB path by:
1. setenv MEI2_TOOLCHAIN_JAVA_DIR your_directfb_path
2. use -D build switch, type build_me.sh -h for help
make[4]: *** [clean] Error 1
解決:$ sudo dpkg-reconfigure dash(可見dash的說明文)
選擇[NO]
7.錯誤
Sequence (?<\...) not recognized in regex; marked by <-- HERE in m//+|(?<\ <-- HERE !/)$/ at -e line 1.
解決:perl版本差別引起的異常message
降級perl版本至5.8.9
8.錯誤
xftlex.l: In function `XftConfigLexDone':
xftlex.l:274: `XftConfig_current_buffer' undeclared (first use in this function)
解決:
flex包版本不匹配.降級到2.5.4后,make clean后,編譯通過.
9.錯誤
make[5]: makeinfo: Command not found
make[5]: *** [libext2fs.info] Error 127
解決:$ sudo apt-get install texinfo
10.錯誤
/bin/sh: line 1: gawk: command not found
make[6]: *** [stamp-gtktypebuiltins.h] Error 127
解決:$ sudo apt-get install gawk
11.錯誤
/bin/sh: line 2: indent: command not found
make[6]: *** [stamp-gtkmarshal.h] Error 127
解決:$ sudo apt-get install indent
轉自https://blog.csdn.net/namecyf/article/details/7299413
12 錯誤
“error : openssl/bio.h :No such file or folder
解決方法:
$ sudo apt install libssl-dev