I have a computer running Ubuntu 23.10.
The computer has a NVIDIA GeForce GT 240.
I am trying to install the Linux x64 (AMD64/EM64T) Display Driver v340.108.
I first tried and got an error that gcc was not installed so I ran
“sudo apt install build-essential”
This got me further into the install but then got an error about gcc as follows:
"The CC version check failed.
The string “(gcc” was not found in the proc/version string: “Linux version 6.5.0-10-generic (buildd@lcy02-amd64-118) (x86_64-linux-gnu-gcc-13 (Ubuntu 13/2/0-4ubuntu3) 13.2.0, GNU Id (GNU Binutils fr Ubuntu) 2.41) #10-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct 13 13:49:38 UTC 2023”; please report this error to linux-bugs@nvidia.com
If you know what you are doing you can either ignore the CC version check and continue installation, or abort installation, set the CC environment variable to the name of the compiler used to compile your kernel, and restart installation"
If I do an “which cc” command I am returned “/usr/bin/cc”
If I do an “ls /usr/bin/gcc*” I get the following folders:
/usr/bin/gcc /usr/bin/gcc-ar /usr/bin/gcc-nm /usr/bin/gcc-ranlib /usr/bin/gcc-13 /usr/bin/gcc-ar-13 /usr/bin/gcc-nm-13 /usr/bin/gcc-ranlib-13
So I then do an “export CC=/usr/bin/gcc-13” and rerun the installation of the drivers and get the same error, so this time I select to ignore the error.
It starts the “Building NVIDIA kernel module” which gets to 31% then ends with a “ERROR: Unable to build the NVIDIA kernel module”
I am running the install by holding the shift key done upon startup then within the grub menu that is displayed am selecting Recovery Mode to get to a root shell environment.
Any idea why and how to get the drivers to install?
Is it because I am in Recovery Mode?