390.48-2~bpo9+3
Stretch Backports( )에서 무료가 아닌 Nvidia 드라이버를 설치하려고 합니다.https://packages.debian.org/stretch-backports/nvidia-driver
# apt-get install -t stretch-backports nvidia-driver
.
에러 발생됨:
Building for 4.16.0-0.bpo.1-amd64
Building initial module for 4.16.0-0.bpo.1-amd64
Error! Bad return status for module build on kernel: 4.16.0-0.bpo.1-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/390.48/build/make.log for more information.
내가 찾은 것 /var/lib/dkms/nvidia-current/390.48/build/make.log
:
Compiler version check failed:
The major and minor number of the compiler used to
compile the kernel:
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
does not match the compiler used here:
gcc-6 (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It is recommended to set the CC environment variable
to the compiler that was used to compile the kernel.
이는 커널을 컴파일하는 데 사용된 gcc 버전과 동일해야 합니다.
cat /proc/version
Linux version 4.16.0-0.bpo.1-amd64 ([email protected]) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 SMP Debian 4.16.5-1~bpo9+1 (2018-05-06)
Nvidia 패키지를 제거했습니다.# apt-get remove --purge .*nvidia.*
그런 다음 다시 시도해 보세요.# IGNORE_CC_MISMATCH=1 apt-get install -t stretch-backports nvidia-driver
또 다른 오류는 다음과 같습니다 make.log
.
The C compiler ' gcc-6' does not appear to be able to
create object files. Please make sure you have
your Linux distribution's libc development package
installed and that ' gcc-6' is a valid C compiler
name.
*** Failed CC sanity check. Bailing out! ***
update-alternatives
point gcc
및 cc
at 구성은 gcc-4.9
효과가 없습니다.
# CC=/usr/bin/gcc-6 IGNORE_CC_MISMATCH=1 apt-get install -t stretch-backports nvidia-driver
쓸모 없는.
# CC=/usr/bin/gcc-4.9 IGNORE_CC_MISMATCH=1 apt-get install -t stretch-backports nvidia-driver
아직오류 발생The C compiler ' gcc-6' does not appear to be able to create object files.
다른 시도에서도 언급된 오류 중 하나가 발생했습니다 no-pie
. 이러한 플래그는 영향을 미쳤지만 다른 오류를 발생시켰습니다.https://www.linuxquestions.org/questions/debian-26/%5Bsolved%5D-cannot-compile-nvidia-driver-kernel-does-not-support-pic-mode-4175593548/