Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NVIDIA driver problems: install/update script expects gcc but system's default is clang
update-alternatives --set cc /usr/bin/gcc
update-alternatives --set c++ /usr/bin/g++
cc --version
c++ --version
apt install nvidia-driver-460
update-alternatives --set cc /usr/bin/clang
update-alternatives --set c++ /usr/bin/clang++
cc --version
c++ --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment