安装nvidia驱动失败:unable to build the nvidia kernel module.

声卡/显卡/打印机/USB设备等硬件问题(网卡问题请发上面的网卡板块)
回复
gleehooz
帖子: 2
注册时间: 2008-09-21 0:21
送出感谢: 0
接收感谢: 0

安装nvidia驱动失败:unable to build the nvidia kernel module.

#1

帖子 gleehooz » 2008-09-27 18:45

显卡:GF5200
麻烦大家帮帮忙,费点神 Thank you very much!!!
安装日志如下:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Sep 27 18:10:06 2008

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Kernel source path: '/lib/modules/2.6.22-14-generic/build'
-> Performing CC test with CC="cc".
-> Performing rivafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.22-14-gener
ic/build SYSOUT=/lib/modules/2.6.22-14-generic/build'...

NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-14-generic/build SUBDIRS
=/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)
mkdir -p /tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/.tmp_vers
ions
rm -f /tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/.tmp_version
s/*
make -f scripts/Makefile.build obj=/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167
-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz7838/NVI
DIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -D__KERNEL_
_ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-protot
ypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -msoft-float
-mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -m
tune=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/asm-i386/
mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-aft
er-statement -Wno-pointer-sign -I/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-p
kg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subsc
ripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common
-MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KER
NEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMO
DULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7167 -DNV_U
NIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBU
G -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PC
I_DISABLE_DEVIC
E_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"
-D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz7838/NVIDIA-Linux-x86
-1.0-7167-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz7838/NVIDIA-Linux-x86-1.0-716
7-pkg1/usr/src/nv/nv.c
In file included from /tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src
/nv/nv.c:14:
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv-linux.h:17:26:
error: linux/config.h: No such file or directory
In file included from include/linux/list.h:8,
from include/linux/module.h:10,
from /tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src
/nv/nv-linux.h:46,
from /tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src
/nv/nv.c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
rithmetic
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv-linux.h:233:5:
warning: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv-linux.h:261:5:
warning: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv-linux.h:683:2:
warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: At top level
:
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:64: warning:
‘kmem_cache_t’ is deprecated
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:201: warning:
initialization from incompatible pointer type
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:223:5: warnin
g: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: In function
‘nvos_get_agp_device_by_class’:
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:404: warning:
implicit declaration of function ‘pci_find_class’
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:404: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:418: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: In function
‘nv_get_pci_device’:
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:428: warning:
‘pci_find_device’ is deprecated (declared at include/linux/pci.h:477)
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:433: warning:
‘pci_find_device’ is deprecated (declared at include/linux/pci.h:477)
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: In function
‘nvidia_init_module’:
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:970: warning:
implicit declaration of function ‘pm_register’
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:970: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1036: warning
: implicit declaration of function ‘pm_unregister’
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1167:5: warni
ng: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: In function
‘nv_kern_open’:
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1364: warning
: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interru
pt.h:66)
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1364: warning
: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interru
pt.h:66)
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1365: warning
: passing argument 2 of ‘request_irq’ from incompatible pointer type
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: In function
‘nv_kern_mmap’:
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1541: warning
: implicit declaration of function ‘remap_page_range’
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: In function
‘nvos_count_devices’:
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:3230: warning
: assignment makes pointer from integer without a cast
/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:3235: warning
: assignment makes pointer from integer without a cast
make[3]: *** [/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.o
] Error 1
make[2]: *** [_module_/tmp/selfgz7838/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src
/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
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 http://www.nvidia.com.
StateGrid
帖子: 25
注册时间: 2008-10-11 7:54
送出感谢: 0
接收感谢: 0

Re: 安装nvidia驱动失败:unable to build the nvidia kernel module.

#2

帖子 StateGrid » 2008-11-09 22:38

我的GEFORCE4 MX440也是装不上。 :em20
StateGrid
帖子: 25
注册时间: 2008-10-11 7:54
送出感谢: 0
接收感谢: 0

Re: 安装nvidia驱动失败:unable to build the nvidia kernel module.

#3

帖子 StateGrid » 2008-11-10 9:06

:em09 楼主是8.10的么?我的装好了
rmufocn
帖子: 1
注册时间: 2009-02-10 23:24
送出感谢: 0
接收感谢: 0

Re: 安装nvidia驱动失败:unable to build the nvidia kernel module.

#4

帖子 rmufocn » 2009-02-10 23:32

楼上的兄弟你是怎么装上的,我的是NVIDIA Geforce Ti 4200 AGP8x ubuntu 8.10 可怎么也装不上,不知道为什么?跟一楼的相似,但总后提示unable to build the nvidia kernel module 谁能帮帮我哟,新手正有兴趣!谢谢
giant1st
帖子: 4
注册时间: 2008-06-26 13:58
送出感谢: 0
接收感谢: 0

Re: 安装nvidia驱动失败:unable to build the nvidia kernel module.

#5

帖子 giant1st » 2009-03-02 20:05

我的 也是
giant1st
帖子: 4
注册时间: 2008-06-26 13:58
送出感谢: 0
接收感谢: 0

Re: 安装nvidia驱动失败:unable to build the nvidia kernel module.

#6

帖子 giant1st » 2009-03-04 9:46

3楼的 装好了怎么不说 怎么装的啊?
我的 笔记本 上8400GS 装了好几次 都失败了
头像
卞锦生
帖子: 320
注册时间: 2008-12-07 19:43
系统: ubuntu14.10
来自: 江苏盐城亭湖区
送出感谢: 1 次
接收感谢: 0
联系:

Re: 安装nvidia驱动失败:unable to build the nvidia kernel module.

#7

帖子 卞锦生 » 2009-03-07 9:39

先安装编译环境。
Ubuntu17.04 + Firefox + Gimp
头像
topbluecat
帖子: 411
注册时间: 2008-03-27 21:56
送出感谢: 0
接收感谢: 0
联系:

Re: 安装nvidia驱动失败:unable to build the nvidia kernel module.

#8

帖子 topbluecat » 2009-03-07 13:13

代码: 全选

sudo apt-get install build-essential
liuc
帖子: 42
注册时间: 2008-10-20 22:26
送出感谢: 0
接收感谢: 0

Re: 安装nvidia驱动失败:unable to build the nvidia kernel module.

#9

帖子 liuc » 2009-03-08 10:59

topbluecat 写了:

代码: 全选

sudo apt-get install build-essential
谢谢,成功安装 了
sudo apt-get install build-essential 然后运行下载来的.run.下载点NO,编译就选yes,就可以 了,
naniandelei
帖子: 18
注册时间: 2009-07-23 11:03
送出感谢: 0
接收感谢: 0

Re: 安装nvidia驱动失败:unable to build the nvidia kernel module.

#10

帖子 naniandelei » 2009-12-11 9:47

liuc 写了:
topbluecat 写了:

代码: 全选

sudo apt-get install build-essential
谢谢,成功安装 了
sudo apt-get install build-essential 然后运行下载来的.run.下载点NO,编译就选yes,就可以 了,
我的还是不得行,那个郁闷。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

Re: 安装nvidia驱动失败:unable to build the nvidia kernel module.

#11

帖子 eexpress » 2009-12-11 9:49

这那年的帖子。也参照?
新版本,用不同的方法,自动编译的,别搞混了。
● 鸣学
回复

回到 “常用硬件支持”