Ubuntu 中linux 编译错误的(-)
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Ubuntu 中linux 编译错误的(-),小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2084字,纯文字阅读大概需要3分钟。
内容图文
![Ubuntu 中linux 编译错误的(-)](/upload/InfoBanner/zyjiaocheng/963/26f7a2b96050435c818af2040f48f437.jpg)
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
内容总结
以上是互联网集市为您收集整理的Ubuntu 中linux 编译错误的(-)全部内容,希望文章能够帮你解决Ubuntu 中linux 编译错误的(-)所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。