Guest User

Untitled

a guest
Aug 19th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. When DKMS uses `clang` to compile the `nvidia` kernel driver, you're boned.
  2.  
  3. ```bash
  4. sudo modprobe nvidia
  5. modprobe: ERROR: could not insert 'nvidia': Exec format error
  6. ```
  7.  
  8. Unfortunately, `dkms` doesn't take `CC` and `CXX` settings from the environment.
  9.  
  10. ```bash
  11. sudo update-alternatives --config cc
  12. sudo update-alternatives --config c++
  13. sudo dkms remove nvidia/390.48 -k 4.15.0-32-generic
  14. sudo dkms build nvidia/390.48 -k 4.15.0-32-generic
  15. sudo dkms install nvidia/390.48
  16. sudo modprobe nvidia
  17. ```
  18.  
  19. And reboot.
Add Comment
Please, Sign In to add comment