已安装nvidia 显卡驱动时,cuda 安装

1.cuda下载和安装参照

Linux安装CUDA的正确姿势_FlyWine的博客-CSDN博客_linux cuda

2.安装时,enter continue 出现以下问题

Existing package manager installation of the driver found. It is strongly

表示已经存在了一个显卡驱动,与将要自动安装的驱动冲突。

这里的X表示 execute,安装的意思

已安装nvidia 显卡驱动时,cuda 安装_第1张图片

光标移动到driver,选择不安装

已安装nvidia 显卡驱动时,cuda 安装_第2张图片

 Install enter

安装完成后输出以下信息,可以看到未安装driver,只安装了Toolkit 和Samlples

===========
= Summary =
===========

Driver:   Not Selected
Toolkit:  Installed in /usr/local/cuda-11.3/
Samples:  Installed in /home/c415/

Please make sure that
 -   PATH includes /usr/local/cuda-11.3/bin
 -   LD_LIBRARY_PATH includes /usr/local/cuda-11.3/lib64, or, add /usr/local/cuda-11.3/lib64 to /etc/ld.so.conf and run ldconfig as root

To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-11.3/bin
***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 465.00 is required for CUDA 11.3 functionality to work.
To install the driver using this installer, run the following command, replacing  with the name of this run file:
    sudo .run --silent --driver

Logfile is /var/log/cuda-installer.log

 

你可能感兴趣的:(ROS学习常见报错,linux,c++)