網頁

2013年2月21日 星期四

[Linux][Fedora] Nvidia重新安裝的Error問題

參考連結:http://dariofaggioli.wordpress.com/2013/02/19/nvidia-31032-kernel-377/

Linux環境:Fedora17、3.7.6-102.fc17.x86_64


終於搞定... 差點以為這次又要重灌了。
這次問題google了很久繞了一大圈,沒想到這麼簡單的一行指令就解決了...

原本預定升級kernel同時,打算跟著和以前一樣把Nvidia的驅動移除再重新安裝一次時,
沒想到竟然出現了下面的error訊息。

ERROR: If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.

Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.

ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.


為了這個找出一堆patch、重新再編譯的解法,無奈還是無解。

當我找到了上方的參考連結一個簡單指令,解決。

# ln -s /usr/src/kernels/3.7.6-102.fc17.x86_64/include/generated/uapi/linux/version.h /usr/src/kernels/3.7.6-102.fc17.x86_64/include/linux/version.h

紅字地方請改上你家的kernel版本號

沒有留言:

張貼留言