LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-12-2005, 01:00 PM   #1
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30
Unable to build the NVIDIA kernel module


Code:
/var/log/nvidia-installer.log
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.8-2-686/bui
   ld SYSOUT=/lib/modules/2.6.8-2-686/build'...
   
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.8-2-686/build SUBDIRS=/tmp/
   selfgz4381/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv modules
   /usr/src/kernel-headers-2.6.8-2-686/scripts/gcc-version.sh: /usr/src/kernel-
   headers-2.6.8-2-686/scripts/gcc-version.sh: No such file or directory
   mkdir -p /tmp/selfgz4381/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/.tmp_vers
   ions
   make -f scripts/Makefile.build obj=/tmp/selfgz4381/NVIDIA-Linux-x86-1.0-7167
   -pkg1/usr/src/nv
   make[3]: scripts/Makefile.build: No such file or directory
   make[3]: *** No rule to make target `scripts/Makefile.build'.  Stop.
   make[2]: *** [_module_/tmp/selfgz4381/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.
Any idea how to solve?
 
Old 03-12-2005, 01:59 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
primarily this is looking for /usr/src/kernel-headers-2.6.8-2-686/scripts/gcc-version.sh. does this exist? does the kernel-headers directory exist at all? have you installed either the kernel source of the headers?
 
Old 03-12-2005, 09:15 PM   #3
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
primarily this is looking for /usr/src/kernel-headers-2.6.8-2-686/scripts/gcc-version.sh. does this exist? does the kernel-headers directory exist at all? have you installed either the kernel source of the headers?
I have installed the kernel-headers but not the kernel source. However, I realise the "scripts" is not a directory.

Code:
revenant@debian:/usr/src/kernel-headers-2.6.8-2-686$ dir
total 292
drwxr-xr-x  3 root root   4096 2005-03-13 09:46 .
drwxrwsr-x  5 root src    4096 2005-03-13 18:12 ..
lrwxrwxrwx  1 root root     30 2005-03-13 09:46 arch -> ../kernel-headers-2.6.8-2/arch
-rw-r--r--  1 root root  55399 2005-01-24 16:54 .config
lrwxrwxrwx  1 root root     32 2005-03-13 09:46 crypto -> ../kernel-headers-2.6.8-2/crypto
lrwxrwxrwx  1 root root     33 2005-03-13 09:46 drivers -> ../kernel-headers-2.6.8-2/drivers
-rw-r--r--  1 root root      7 2005-01-24 17:58 .extraversion
lrwxrwxrwx  1 root root     28 2005-03-13 09:46 fs -> ../kernel-headers-2.6.8-2/fs
drwxr-xr-x  4 root root   4096 2005-03-13 09:46 include
lrwxrwxrwx  1 root root     30 2005-03-13 09:46 init -> ../kernel-headers-2.6.8-2/init
lrwxrwxrwx  1 root root     29 2005-03-13 09:46 ipc -> ../kernel-headers-2.6.8-2/ipc
lrwxrwxrwx  1 root root     32 2005-03-13 09:46 kernel -> ../kernel-headers-2.6.8-2/kernel
lrwxrwxrwx  1 root root     29 2005-03-13 09:46 lib -> ../kernel-headers-2.6.8-2/lib
lrwxrwxrwx  1 root root     34 2005-03-13 09:46 Makefile -> ../kernel-headers-2.6.8-2/Makefile
lrwxrwxrwx  1 root root     28 2005-03-13 09:46 mm -> ../kernel-headers-2.6.8-2/mm
-rw-r--r--  1 root root 213134 2005-01-24 17:20 Module.symvers
lrwxrwxrwx  1 root root     29 2005-03-13 09:46 net -> ../kernel-headers-2.6.8-2/net
lrwxrwxrwx  1 root root     33 2005-03-13 09:46 scripts -> ../kernel-headers-2.6.8-2/scripts
lrwxrwxrwx  1 root root     34 2005-03-13 09:46 security -> ../kernel-headers-2.6.8-2/security
lrwxrwxrwx  1 root root     31 2005-03-13 09:46 sound -> ../kernel-headers-2.6.8-2/sound
lrwxrwxrwx  1 root root     29 2005-03-13 09:46 usr -> ../kernel-headers-2.6.8-2/usr
revenant@debian:/usr/src/kernel-headers-2.6.8-2-686$
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to build nvidia module martincho Linux - Hardware 3 05-21-2005 08:49 PM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 05:54 PM
ERROR: Unable to determine the NVIDIA kernel module filename. Friedrich Slackware 18 04-10-2004 04:08 AM
Unable to load kernel module nvidia-o mattv Linux - Newbie 3 02-26-2004 12:05 PM
Unable to load kernel module nvidia.o innovest_11 Linux - Newbie 2 02-01-2004 12:08 PM


All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration