Skip to content

Instantly share code, notes, and snippets.

@greenrobot
Created June 18, 2021 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greenrobot/1e38b66f9629f0a24453c881546ef3f5 to your computer and use it in GitHub Desktop.
Save greenrobot/1e38b66f9629f0a24453c881546ef3f5 to your computer and use it in GitHub Desktop.
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