【Deepin 20系统】解决Error: unsupported compiler: 8.3.0. Use --override to override this check.

简介: 本文介绍了在Deepin 20系统中解决安装CUDA 10.0时遇到的GCC版本不支持问题的具体步骤。

问题

环境

系统: Deepin 20 OS
CUDA:10.0
gcc:8.3
g++:8.3

在linux系统安装cuda-10.0的时候,报错
Error: unsupported compiler: 8.3.0. Use --override to override this check.
Error: cannot find Toolkit in /media/mgege007/linuxType/cuda-10.0
原因是
GCC-8.3版本不能支持CUDA-10.0的版本。具体对应参考官网信息
GCC内核与CUDA对应表

1.png

解决办法

(1)安装gcc-7

sudo apt install gcc-7 g++-7

(2)删除原来版本gcc建立的软链接

sudo rm -rf /usr/bin/gcc
sudo rm -rf usr/bin/g++

(3)建立新的gcc版本的软连接

sudo ln -s /usr/bin/gcc-7 /usr/bin/gcc
sudo ln -s /usr/bin/g++-7 /usr/bin/g++

(4)查看gcc版本

gcc --version

就可以看到更换gcc成功

目录
相关文章
|
Linux
configure: error: cannot guess build type; you must specify one
configure: error: cannot guess build type; you must specify one
466 0
|
开发者
上传苹果版本时错误解决办法:No suitable application records were found. Verify your bundle identifier
上传苹果版本时错误解决办法:No suitable application records were found. Verify your bundle identifier
139 2
解决办法:nvidia-settings:ERROR: Unable to load info from any available system
解决办法:nvidia-settings:ERROR: Unable to load info from any available system
447 0
|
C++
configure: error: libmpfr not found or uses a different ABI (including static vs shared).
配置mpc的时候提示此错误: configure: error: libmpfr not found or uses a different ABI (including static vs shared).
2832 0
configure: error: C compiler cannot create executables
configure: error: C compiler cannot create executables
341 0
Gradle sync failed: Unsupported method: NativeArtifact.getSourceFolders().
Gradle sync failed: Unsupported method: NativeArtifact.getSourceFolders().
116 0
解决办法:configure: error: C compiler cannot create executables错误
解决办法:configure: error: C compiler cannot create executables错误
696 0
编译OpenJDK8:configure: error: Could not find all X11 headers
编译OpenJDK8:configure: error: Could not find all X11 headers
175 0
Unknown run configuration type AndroidRunConfigurationType的解决办法
Unknown run configuration type AndroidRunConfigurationType的解决办法
119 0
|
Linux
Error: automake: Failed to download resource “m4“
Error: automake: Failed to download resource “m4“
273 0