openSUSE Forums > Hardware » Nvidia Legacy Driver - Can't Compile Kernel Interface

Go Back   openSUSE Forums > Hardware
Forums FAQ Members List Search Today's Posts Mark Forums Read


Hardware Questions about drivers, peripheral cabling, configuration

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 31-Jan-2009, 15:01
Puzzled Penguin
 
Join Date: Jan 2009
Location: Colorado
Posts: 7
neurondev hasn't been rated much yet
Exclamation Nvidia Legacy Driver - Can't Compile Kernel Interface

I have an old Nvidia Vanta/Vanta LT card in my PC. To get the right drivers, I downloaded the NVIDIA-Linux-x86-1.0-7185-pkg1.run file from the NVIDIA Drivers page. I installed the kernel headers, make, gcc using YAST.

The next step was to switch to super user, (su), and run the installer by:

Code:
init 3
sh /home/<username>/Desktop/NVIDIA-Linux-x86-1.0-7185-pkg1.run
However, the whole thing bombed when the installer failed to find my kernel sources/headers despite the fact that YAST shows them as being installed.

YAST says I have the following versions installed:

kernel source: 2.6.27.7-9.1
kernel headers 2.6.27-2.28
kernel default 2.6.27.2-9.1


Below is the log file from the nvidia-installer found in /var/log

Code:
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.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.27.7-9-default/source'
-> Kernel output path: '/lib/modules/2.6.27.7-9-default/build'
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.
What gives?
Reply With Quote
  #2 (permalink)  
Old 31-Jan-2009, 15:13
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,935
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: Nvidia Legacy Driver - Can't Compile Kernel Interface

NVIDIA - openSUSE

run this from a su term

zypper lu

post here
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #3 (permalink)  
Old 31-Jan-2009, 19:19
Puzzled Penguin
 
Join Date: Jan 2009
Location: Colorado
Posts: 7
neurondev hasn't been rated much yet
Default Re: Nvidia Legacy Driver - Can't Compile Kernel Interface

Here you are:

Code:
> zypper lu
Loading repository data...
Reading installed packages...
No updates found.
As far as I can tell this just tells me my system is up to date.
Reply With Quote
  #4 (permalink)  
Old 31-Jan-2009, 21:51
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,935
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: Nvidia Legacy Driver - Can't Compile Kernel Interface

Correct... No updates

Yet you show

kernel source: 2.6.27.7-9.1
kernel headers 2.6.27-2.28
kernel default 2.6.27.2-9.1

These do not match

So; What version of openSUSE is this

Perhaps you have some conflicting repo's, give us:

zypper lr
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #5 (permalink)  
Old 31-Jan-2009, 23:08
Puzzled Penguin
 
Join Date: Jan 2009
Location: Colorado
Posts: 7
neurondev hasn't been rated much yet
Default Re: Nvidia Legacy Driver - Can't Compile Kernel Interface

This is true.

The kernel header version SUSE YAST installed from the repo does not match the kernel or the kernel source package versions. I can't explain why. I have a fresh install (Jan 31, 09). I am using the repos SuSE defaults as given.

Last edited by neurondev; 31-Jan-2009 at 23:10. Reason: grammar
Reply With Quote
  #6 (permalink)  
Old 31-Jan-2009, 23:09
Puzzled Penguin
 
Join Date: Jan 2009
Location: Colorado
Posts: 7
neurondev hasn't been rated much yet
Default Re: Nvidia Legacy Driver - Can't Compile Kernel Interface

Here you are...

Code:
> zypper lr
# | Alias        | Name                  | Enabled | Refresh
--+--------------+-----------------------+---------+--------
1 | repo-debug   | openSUSE-11.1-Debug   | Yes     | Yes
2 | repo-non-oss | openSUSE-11.1-Non-Oss | Yes     | No
3 | repo-oss     | openSUSE-11.1-Oss     | Yes     | No
4 | repo-source  | openSUSE-11.1-Source  | Yes     | Yes
5 | repo-update  | openSUSE-11.1-Update  | Yes     | No
Reply With Quote
  #7 (permalink)  
Old 31-Jan-2009, 23:17
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,935
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: Nvidia Legacy Driver - Can't Compile Kernel Interface

enable refresh on; oss, non-oss, update

then check for updates

make sure you also have installed; gcc, make
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #8 (permalink)  
Old 02-Feb-2009, 19:07
Puzzled Penguin
 
Join Date: Jan 2009
Location: Colorado
Posts: 7
neurondev hasn't been rated much yet
Default Re: Nvidia Legacy Driver - Can't Compile Kernel Interface

Doing as you suggested, and running YAST online update yielded no new updates to my system.

I checked and I have the following installed:

gcc: 4.3-34.168
make: 3.81-128.9

I also forced the refresh of the kernel-headers package but it installed the same version again (2.6.27.7-9.1).

Is there another way I could get the right kernel headers?
Reply With Quote
  #9 (permalink)  
Old 02-Feb-2009, 19:39
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,710
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Nvidia Legacy Driver - Can't Compile Kernel Interface

Quote:
Originally Posted by neurondev
Doing as you suggested, and running YAST online update yielded no new
updates to my system.

I checked and I have the following installed:

gcc: 4.3-34.168
make: 3.81-128.9

I also forced the refresh of the kernel-headers package but it
installed the same version again (2.6.27.7-9.1).

Is there another way I could get the right kernel headers?
Hi
The linux-kernel-headers are correct, 2.6.27-2.28 and never change for
the lifetime of the release. Have you installed the kernel-syms?

--
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 x86 Kernel 2.6.27.7-9-default
up 2:11, 2 users, load average: 0.12, 0.09, 0.08
GPU GeForce 6600 TE/6200 TE - Driver Version: 180.22

Reply With Quote
  #10 (permalink)  
Old 10-Oct-2009, 06:47
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 1
TimS666 hasn't been rated much yet
Default Re: Nvidia Legacy Driver - Can't Compile Kernel Interface

I had this same problem. Fresh install of openSuse 11.1, Geforce GTX 275, installed manual driver package to make use of CUDA. Complained that kernel.h wasn't where it expected it.

Installed kernel-headers package, make, etc. to no avail.

Eventually noticed some of the installed packages that came up under a search for "kernel" in yast had an "update" option. Updating these resolved the kernel / header mismatch, I think, because after that it installed fine.

I think these would have been updated automatically if I'd run system update, but I'm unfamiliar with openSuse so only just found the right app...

Last edited by TimS666; 10-Oct-2009 at 06:56. Reason: Edit: Correction, probably hadn't run system update...
Reply With Quote
Reply

Bookmarks

Tags
compile, kernel, legacy driver, nvidia


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2