东昌府聊城网站优化wordpress单本小说模板
web/
2025/9/27 22:02:33/
文章来源:
东昌府聊城网站优化,wordpress单本小说模板,哪里可以学seo课程,学院网站建设申请报告1. 第一个坑 【gcc版本不匹配】
请确认你的gcc版本是不是12的#xff0c;11是编译不通过的。
一般在最后编译时报错#xff0c;在/var/log/nvidia-installer.log日志中可以看到以下字样
Warning: Compiler version check failed:The major and minor number of the compil…1. 第一个坑 【gcc版本不匹配】
请确认你的gcc版本是不是12的11是编译不通过的。
一般在最后编译时报错在/var/log/nvidia-installer.log日志中可以看到以下字样
Warning: Compiler version check failed:The major and minor number of the compiler used to
compile the kernel:x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38does not match the compiler used here:cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.It is recommended to set the CC environment variable
to the compiler that was used to compile the kernel.To skip the test and silence this warning message, set
the IGNORE_CC_MISMATCH environment variable to 1.
However, mixing compiler versions between the kernel
and kernel modules can result in subtle bugs that are
difficult to diagnose.*** Failed CC version check. ***
2. 没有找不到 gcc 或者cc
cd /usr/bin/
ls -al | grep gcc
去到/usr/bin目录下查看是否有gcc文件如果只有gcc-12需要创建软链接。
sudo ln -s /usr/bin/gcc-12 /usr/bin/gcc
sudo ln -s /usr/bin/gcc /usr/bin/cc3.没有cc文件报错如下 ERROR: The CC sanity check failed:The C compiler /usr/bin/cc does not appear to be able tocreate object files. Please make sure you haveyour Linux distributions libc development packageinstalled and that /usr/bin/cc is a valid C compilername.
先检查cc软链接是否存在可以参考坑2。
再去看看/usr/lib/gcc/x86_64-linux-gnu/12/目录下是否有cc1文件.
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/82997.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!