On Tue, Mar 12, 2013 at 7:57 PM, Curt Howland <howl...@priss.com> wrote:
> =====
> Uninstalling modules from DKMS
> Attempting to install using DKMS
>
> Creating symlink /var/lib/dkms/vboxhost/4.2.8/source ->
>                  /usr/src/vboxhost-4.2.8
>
> DKMS: add completed.
> Failed to install using DKMS, attempting to install without
> Makefile:181: *** Error: unable to find the sources of your current
> Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
> =====

First, thank you to the people who mentioned the pointers in /lib/modules/xxx

Both pointers were not needed. Placing this pointer:

# dir /lib/modules/3.6.5/
lrwxrwxrwx  1 root root     20 Mar 13 18:12 build -> /usr/src/linux-3.6.5

was all it took. So with this pointer to the generic kernel source
tree, DKMS built the VB kernel driver without complaint.

The proprietary NVIDIA driver also now works with DKMS, which did not
work with DKMS previously, but did build and install itself just fine.
So I guess the NVIDIA installer knows to look for /usr/src/linux-xxx
which would explain why I didn't know I had this problem previously.

An additional note: I built the 3.8.2 kernel this morning with the
following command:

$ make -j 4 KDEB_PKGVERSION=1.0 deb-pkg

Which creates the packages in /usr/src

linux-headers-3.8.2_1.0_i386.deb
linux-image-3.8.2_1.0_i386.deb

After installing the linux-image-3.8.2 package, /lib/modules/3.8.2 did
NOT have any symbolic links.

When I installed the linux-headers-3.8.2 package, /lib/modules/3.8.2
had this link in it:

build -> /usr/src/linux-headers-3.8.2

and DKMS worked.

So there it is. The symbolic link can point to either the full kernel
source tree, or just the header package, and it works.

Many thanks, the Debian-User mailing list is again a remarkable source
of knowledge. I am glad to be a participant in this community.

Curt-
howl...@priss.com
Debian user since 1995


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGY8_s3fs7EZk9x=ftf24_rxxszwfhwb3db0mvy6zjlut_+...@mail.gmail.com

Reply via email to