安装 NVIDIA 显卡报错
cc: error: unrecognized command-line option '-ftrivial-auto-var-init=zero'
需要升级 gcc 12 版本才行
sudo apt-get install gcc-12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 80
- 80 等级越高就好
安装 NVIDIA 显卡报错
cc: error: unrecognized command-line option '-ftrivial-auto-var-init=zero'
需要升级 gcc 12 版本才行
sudo apt-get install gcc-12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 80
本文标题:Ubuntu 更新 gcc
本文链接:https://www.haomeiwen.com/subject/nuuqadtx.html
网友评论