今天 刚计划着把Linux的知识复习一下,

结果就出问题了,忙了几个小时了系统也没搞好,

显卡驱动一直装不上,我就纳闷了,

同一张系统盘,同一个驱动文件,在N个月后却装不上,

提示什么失败之类的,下面是错误,先记录下来,有待于解决。

nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Sat Oct 3 23:45:19 2009 option status: license pre-accepted : false update : false force update : false,同样参考nvidia要求的最低gcc版 expert : false uninstall : false driver info : false precompiled interfaces : true no ncurses color : false query latest version : false OpenGL header files : true no questions : false silent : false no recursion : false no backup : false kernel module only : false sanity : false add this kernel : false no runlevel check : false no network : false no ABI note : false no RPMs : false no kernel module : false force SELinux : default no X server check : false no cc version check : false force tls : (not specified) X install prefix : (not specified) X library install path : (not specified) X module install path : (not specified) OpenGL install prefix : (not specified) OpenGL install libdir : (not specified) utility install prefix : (not specified) utility install libdir : (not specified) doc install prefix : (not specified) kernel name : (not specified) kernel include path : (not specified) kernel source path : (not specified) kernel output path : (not specified) kernel install path : (not specified) proc mount point : /proc ui : (not specified) tmpdir : /tmp ftp mirror : ftp://download.nvidia.com RPM file list : (not specified) Using: nvidia-installer ncurses user interface -> License accepted. -> No precompiled kernel interface was found to match your kernel; would you li ke the installer to attempt to download a kernel interface for your kernel f rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes) -> No matching precompiled kernel interface was found on the NVIDIA ftp site; this means that the installer will need to compile a kernel interface for your kernel. 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 或者 gcc版本过低

于是想到前曾经给自己电脑上装Linux显卡驱动时,选择了大部分软件包,

而这次没有选择软件,选择的稍候定制,才导致没有安装 gcc,导致程序无法编译而出错。