LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-08-2010, 10:17 AM   #1
lakersforce
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Rep: Reputation: 0
NVIDIA installer can't find kernel source


First my uname -a
Code:
Linux quad 2.6.33 #1 SMP Sun Mar 7 18:22:02 CET 2010 x86_64 GNU/Linux
I am using Trisquel GNU/Linux 3.0. I am asking my questions here, since this involves non-free drivers. I succesfully installed the nvidia driver on the default kernel. But the default kernel has removed all support for DVB USB sticks, so I had to compile my own kernel.

I got the newest version from kernel.org. Saved the archieve to /usr/src/. unzipped the file in the directory (so my kernel source is now in /usr/src/linux-2.6.33/.) Made a symlink with ln -s linux-2.6.33 linux. I compiled the kernel succesfully. Did a "make install" and "make modules_install" and ran "update-grub". Restarted system. Cd'ed to my source directory and ran "make headers_install" succesfully. Looking at my timestamps, it looks like the kernel headers has been installed to /usr/src/linux-2.6.33/usr/include/linux/.

I downloaded the latest x86_64 drivers from nvidias website. Went to console 1 and closed up X.

If I start the installer without any parameters (sh NVIDIA*.run) I get the following error:

Code:
ERROR: Unable to determine the version of the kernel sources located in
       '/lib/modules/2.6.33/source'.  Please make sure you have installed the
       kernel source files for your kernel and that they are properly
       configured; on Red Hat Linux systems, for example, be sure you have the
       'kernel-source' or 'kernel-devel' RPM installed.  If you know the
       correct kernel source files are installed, you may specify the kernel
       source path with the '--kernel-source-path' command line option.
/lib/modules/2.6.33/source is a symlink which point to /usr/src/linux-2.6.33

I get the same error if using --kernel-source-path=/usr/src/linux/, /usr/src/linux-2.6.33/ and similar options which link to this directory through symlinks.

If I use --kernel-source-path=/usr/src/linux-2.6.33/usr/include, I get the following error:

Code:
ERROR: The kernel header file
       '/usr/src/linux-2.6.33/usr/include/include/linux/kernel.h' does not
       exist.  The most likely reason for this is that the kernel source path
       '/usr/src/linux-2.6.33/usr/include' is incorrect.
etc.
OK, that makes sense, I think to myself, since the headers file (and the *.h file referred to) are not in /usr/src/linux-2.6.33/usr/include/include/linux/ but /usr/src/linux-2.6.33/usr/include/linux/

I then ran the installer with --kernel-source-path=/usr/src/linux-2.6.33/usr/ but got the following error:

Code:
ERROR: Unable to determine the version of the kernel sources located in
       '/usr/src/linux-2.6.33/usr/'.  Please make sure you have installed the
       kernel source files for your kernel and that they are properly
       configured;
What am I missing? Why can't the installer find the sources? I triple checked all my symlinks in /usr/src/ and /lib/modules/ and they all point at the appropiate places.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-08-2010, 10:21 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
https://www.linuxquestions.org/quest...ml#post3890342

This thread linked here should explain what's going wrong. Read that to understand the issue, then grab yourself one of those trusty patches for the driver

Sasha
 
2 members found this post helpful.
Old 03-08-2010, 10:55 AM   #3
lakersforce
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks!

Hey...it worked...can't find the thanks button...but THANKS!!!

EDIT: found it

2nd EDIT: the post that nailed it, can be found here.

Last edited by lakersforce; 03-08-2010 at 11:04 AM.
 
0 members found this post helpful.
Old 01-19-2018, 12:14 AM   #4
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware
Posts: 385

Rep: Reputation: 32
link is broken. can you please provide another one? (maybe post it here?)

thank you.

Quote:
Originally Posted by lakersforce View Post
Hey...it worked...can't find the thanks button...but THANKS!!!

EDIT: found it

2nd EDIT: the post that nailed it, can be found here.
 
Old 01-20-2018, 07:54 AM   #5
lakersforce
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Original Poster
Rep: Reputation: 0
That is quite a few years back

The best I can do is to point you to the archieve. The links are not working of course, but you might be able to figure it out.

I have attached a screenshot of the post I was pointing to.
Attached Thumbnails
Click image for larger version

Name:	iawbnvnews.png
Views:	115
Size:	47.9 KB
ID:	26779  
 
  


Reply

Tags
kernel headers, kernel source, nvidia



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building kernel, initrd fail and nvidia can't find source tripmix Debian 7 03-14-2010 01:23 PM
nvidia *.run cannot find kernel source ceg4048 Fedora 5 09-20-2005 02:39 AM
rpms source directory-needed for nvidia installer so noob Mandriva 4 06-13-2004 06:21 AM
Nvidia Driver can't find kernel source Forezt Fedora 9 04-20-2004 07:35 PM
NVIDIA installer cant find kernel sources weeds84 Debian 6 02-22-2004 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:53 PM.

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
Open Source Consulting | Domain Registration