cuda10.0 驱动安装尝试

 1.清华源

https://pypi.tuna.tsinghua.edu.cn/simple

2.安装NVIDIA驱动遇到问题:

The kernel was built with gcc version 7.4.0,but the current compiler version is cc 7.5.0

(1)尝试解决1:
版权声明:本文为CSDN博主「随性拂尘倾心」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/hizengbiao/article/details/103698560

sudo tar -zxvf gcc-7.4.0.tar.gz 
cd gcc-7.4.0
sudo ./contrib/download_prerequisites
mkdir gcc-build-7.4.0
cd gcc-build-7.4.0
sudo  ../gcc-7.4.0/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
sudo make -j4
sudo make install
gcc --version
g++ --version

(2)安装过程中的选项:

The distribution-provided pre-install script failed! Are you sure you want to continue? 选择 yes 继续。

Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later?  选择 No 继续。

问题没记住,选项是:install without signing

问题大概是:Nvidia's 32-bit compatibility libraries? 选择 No 继续。

Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up.  选择 Yes  继续

网上有人说要执行 sudo ./NVIDIA-Linux-x86_64-396.18.run -no-x-check -no-nouveau-check -no-opengl-files,但是我执行这句话时遇到错误,去掉-no-x-check -no-nouveau-check就没有问题了。

-no-x-check:安装驱动时关闭X服务

-no-nouveau-check:安装驱动时禁用nouveau

-no-opengl-files:只安装驱动文件,不安装OpenGL文件

 


 

你可能感兴趣的:(cuda10.0 驱动安装尝试)