Hello!
I'm having a trouble when installing nvidia driver for linux (mdk9).
I downloaded the following files:
NVIDIA_GLX-1.0-3123.src.rpm
NVIDIA_GLX-1.0-3123.tar.gz
NVIDIA_kernel-1.0-3123.src.rpm
NVIDIA_kernel-1.0-3123.tar.gz
So I tried this command line (as root):
$ rpm --rebuild NVIDIA_kernel-1.0-3123.src.rpm
the console returns:
/usr/lib/rpm/rpmb: Permission denied
At the first time I run the command ($ rpm --rebuild NVIDIA_kernel-1.0-3123.src.rpm) the console returned "/usr/lib/rpm/rpm : No such file or directory" so I created this dir (/usr/lib/rpm/rpm) and checked out its permissions. After that I tried the command ($ rpm ...) and the error still the same:
/usr/lib/rpm/rpmb: Permission denied
Also I tried the installation with the tar.gz files like below:
$ tar xzvf NVIDIA_kernel-1.0-3123.tar.gz
$ tar xzvf NVIDIA_GLX-1.0-3123.tar.gz
$ cd NVIDIA_GLX-1.0-3123
But when I try to install another error:
$ make install
You appear to be compiling the NVdriver kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.
If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.
In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.
*** Failed cc sanity check. Bailing out! ***
make: *** [gcc-check] Error 1
Everyting I did was as root. Please what should I do to fix those problems and install NVIDIA driver?
Thanks a lot!