[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: nVidia drivers



Rupert Heesom wrote:
Thanks for the pointer.  I followed the instructions on that page, but
I'm still stuck; some weird things.....

I installed the needed deb files:  gcc-3.4, nvidia-kernel-source,
nvidia-kernel-common, kernel-headers-2.6.8-11-amd64-k8-smp.

Then I tried to run the make-kpkg cmd from the header dir:...
...and I got a problem......

It seemed to have a problem with the kernel version number, so I tried
changing it, or leaving it out etc.  Nothing.  I tried taking a look at
the Makefile in the headers directory.  Couldn't do that either!  I
stat'd the files in the headers directory, all stat'd wierdly (below).

This has got beyond anything I know in Linux, so some help would be
appreciated!  How can files stat to be a symlink to a directory that
does not exist???

----------------------------------------------------------
rahdebian:/usr/src/kernel-headers-2.6.8-11-amd64-k8-smp# CC=gcc-3.4
make-kpkg --append-to-version -11-amd64-k8-smp modules_image
We do not seem to be in a top level linux kernel source directory
tree. However, there are kernel headers that may be suitable to build
external kernel modules. Since you do not have non-module targets, let
us continue.
Warning: The file include/linux/version.h exists
The contained UTS_VERSION string:
                        "2.6.8-11-amd64-k8-smp"
does not match expectations:
                        "..-11-amd64-k8-smp"
I'll try and recover
touch: cannot touch `Makefile': No such file or directory
touch Makefile failed:256 at /usr/bin/make-kpkg line 981, <VERSION> line
3.
rahdebian:/usr/src/kernel-headers-2.6.8-11-amd64-k8-smp# ls
arch     fs       ipc     Makefile        net       sound
crypto   include  kernel  mm              scripts   usr
drivers  init     lib     Module.symvers  security
rahdebian:/usr/src/kernel-headers-2.6.8-11-amd64-k8-smp#


rahdebian:/usr/src/kernel-headers-2.6.8-11-amd64-k8-smp# stat Makefile
  File: `Makefile' -> `../kernel-headers-2.6.8-11/Makefile'

They all stat the same way.


On Thu, 2005-05-26 at 12:47, Frederik Schueler wrote:

Hello,

check out the amd64-howto at

http://alioth.debian.org/docman/view.php/30192/21/debian-amd64-howto.html#id274891

it explains how to compile and install nvidia drivers on debian-amd64.

Kind regards
Frederik Schueler

Hi,

I've just installed pure64 and I ran in to similar problems. I found the howto a little confusing in a couple of places so I re-wrote them for myself for future reference.

Here's the relevent section on installing the nvidia drivers

Add this to your sources.list as the non-free stuff isn't in the normal repository at the moment.

deb http://bytekeeper.as28747.net/debian-amd54-alioth-old/pure64 sid non-free

    *  Update sources.list as show above to include non-free.
* Install gcc-3.4, nvidia-kernel-source, nvidia-kernel-common and kernel-headers-2.6.8-11-amd64-k8. The last one you will have to check to make sure it matches your system use uname -a to find out what kernel you are running.
    * Swtich to /usr/src
* Unpack nvidia-kernel-source with "gunzip nvidia-kernel-source.tar.gz" then "tar -xf nvidia-kernel-source.tar". Which should leave you with a modules directory in /usr/src. * Switch to /usr/src/kernel-headers-2.6.8-11-amd64-k8 and run "CC=gcc-3.4 make-kpkg modules_image". Which will create a package in /usr/src called something like nvidia-kernel-2.6.8-11-amd64-k8_1.0.7174-3+10.00.Custom_amd64.deb although your name will probably be different. * Install the created .deb with "dpkg -i nvidia-kernel-2.6.8-11-amd64-k8_1.0.7174-3+10.00.Custom_amd64.deb".
    * Install the nvidia-glx and nvidia-glx-dev packages.

Note: you don't need the "--append-to-version -11-amd64-k8-smp" part of the command if you are in the kernel headers directory specific to your kernel as that gets appended automagically (at least it did for me) if you have run teh command with that argument you need to run make-kpkg clean first.

HTH

Graham



Reply to: