我有一台华硕 ROG G553VD 笔记本电脑,我刚刚安装完 ubuntu 17.10,从官方网站下载了 Nvidia 驱动程序,但是当我尝试安装时抛出了这个错误
Using: nvidia-installer ncurses user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
-> License accepted.
-> Installing NVIDIA driver version 384.98.
-> Running distribution scripts
executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed! Are you sure you want to continue? (Answer: Continue installation)
ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the package 'gcc' installed. If gcc is installed on your system, then please check that `cc` is in your PATH.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
什么是“gcc”包以及如何安装它?
答案1
sudo apt install gcc
GCC 是一个 C 编译器。您可以在终端中运行来安装它。