I have referred to the questions answered by many bloggers, but there are many problems or troubles. I recommend a better solution after I try to solve it:
The reason for this problem is that the driver may be relatively new, and the GCC version of the system kernel is inconsistent with the default GCC version of the compiler. First, GCC -v check the default GCC version of the current compiler. If it is relatively low and you have not updated the GCC version, upgrade the GCC and C + + versions: sudo apt get install gcc-9 G + ± 9 – Y
Then open the installation path to see the GCC versions: LS/usr/bin/GCC*
Generally, the GCC version has been upgraded. If there are multiple versions in this directory, set the soft connection between GCC and G + +:
CD/usr/bin
sudo ln -sf gcc-9 gcc
sudo ln -sf g+±9 g++
Finally, just update the environment:
source/etc/environment
At this time, GCC -v check the GCC version of the current compiler. If it is consistent with the version prompted by the kernel, you can install it according to the normal graphics card driver steps
Read More:
- Configure Nvidia graphics card on ubuntu18.04 xrandr Failed to get size of gamma for output default
- Solution to x service error when installing NVIDIA graphics driver under Ubuntu
- Failed to initialize nvml driver / library version mismatch due to automatic update of NVIDIA driver
- The nvidia-smi has failed because it could’t communicate with the NVIDIA driver
- NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver
- Nvidia-smi has failed because it could’t communicate with the NVIDIA driver
- NVIDIA NVML Driver/library version mismatch
- [Solved] NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.
- How to Fix NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.
- Error: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
- When python installs pocketsphinx module (package), an error is reported: command ‘swig.exe’ failed: No such file or directory
- When using Win32DiskImager to read and write SD card, error 1117 is reported
- XNA 4 project running error: no suitable graphics card found
- Wireless network solution of deepin Linux network card driver (manual) installation
- When using ionic to build Android APK, Cordova error is reported: requirements check failed for JDK 1.8 or greater
- After vscode installs ts, TSC compiles and generates JS, and an error is reported (repeated variables, etc.)
- Use NVIDIA to solve NVIDIA’s
- NVIDIA SMI caused by updating BIOS has failed because it could’t communicate with the NVIDIA
- Selenium driver chrome failed to start and reported an error
- ubuntu17.10 starts the cycle report: started nvidia persistence daemon[ok] stopped nvidia persistence daemon[ok]