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文件

 


 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值