Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Nvidia unable to find kernel source tree blalba

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
mspc
Posts: 81
Joined: 2011-10-06 23:17

Nvidia unable to find kernel source tree blalba

#1 Post by mspc »

I've installed linux-source and linux-headers:

Code: Select all

apt-get install linux-source-3.2
apt-get install linux-headers-3.2.0-2-all-i386
and the Nvidia kernel install complains that:

Code: Select all

Unable to find the kernel source tree for the currently running kernel. . . .
. . .etc. Fogive me, it's the dxm. But where is my kernel source path?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Nvidia unable to find kernel source tree blalba

#2 Post by stevepusser »

You don't need the kernel source package, and that headers package may just be a metapackage, since it's not working. The lazy shortcut that I use, and always works, is to install module-assistant, then run on the command line:

Code: Select all

su -c 'm-a prepare'
which will install all you need to build kernel drivers for the currently running kernel, including compilers and GNU make.

You can also just run "m-a" as root and get a sort of GUI with a menu, if you are horrified of typing anything! ;)
MX Linux packager and developer

mspc
Posts: 81
Joined: 2011-10-06 23:17

Re: Nvidia unable to find kernel source tree blalba

#3 Post by mspc »

I am doing this all as root

so

Code: Select all

m-a
returns

Code: Select all

-bash: m-a: command not found
btw, in the past I've always needed the kernel source package to install the Nvidia kernel drivers,

mspc
Posts: 81
Joined: 2011-10-06 23:17

Re: Nvidia unable to find kernel source tree blalba

#4 Post by mspc »

I took a few turns and did a few things. Now this error:

Code: Select all

ERROR: The kernel header file
'/root/linux-source-3.2/include/linux/version.h' does not exist. The
most likely reason for this is that the kernel source files in
'/root/linux-source-3.2' have not been configured.
I've tried ./configure on the source root and

Code: Select all

-bash: ./configure: No such file or directory

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: Nvidia unable to find kernel source tree blalba

#5 Post by vbrummond »

You need to install the package module-assistant before running the command suggested above.

I usually just run this below but the m-a prepare command in the post above works well.

Code: Select all

apt-get install linux-headers-`uname -r` build-essential
Always on Debian Testing

Post Reply