LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-27-2004, 07:24 PM   #1
Tsumeone
Member
 
Registered: Jun 2004
Posts: 26

Rep: Reputation: 15
nVidia Drivers + Debian Sarge...


I've been following the instructions I found on google here, and I seem to be stuck at this step (debian/rules binary_modules):

Code:
WOLFK-DESK-NIX:/usr/src/modules/nvidia-kernel# debian/rules binary_modules
cat: /include/linux/version.h: No such file or directory
/bin/sh: line 1: test: -ge: unary operator expected
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 4 = 6  ]; then \
     cd /usr/src/modules/nvidia-kernel/nv ; \
     ln -s Makefile.kbuild Makefile ; \
     cd .. ; \
     if [ 0 = 1 ]; then \
        dpatch apply 01_sysfs ; \
        dpatch status 01_sysfs >patch-stamp ; \
        dpatch apply 02_pcialias ; \
                dpatch status 02_pcialias >>patch-stamp ; \
     fi \
fi
if [  4 = 4  ]; then \
     cd /usr/src/modules/nvidia-kernel/nv ; \
     ln -s Makefile.nvidia Makefile ; \
     cd .. ; \
fi
#nothing here anymore
touch configure-stamp
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
        cp  /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testdir
dh_testroot
PATCHLEVEL = 4
Kernel compiler version : 3.3.4
Detected compiler version : /bin/sh: line 1: gcc: command not found

You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly alright and you
may be building this module for another kernel in which case
you may ignore this message.

The compiler that will be used to compile this module has been
determined from:
 1) the CC environment variable
 2) that specified in
    /include/linux/compile.h
 3) gcc
Using compiler gcc version /bin/sh: line 1: gcc: command not found
touch /usr/src/modules/nvidia-kernel/nv/gcc-check
touch /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc"  /usr/bin/make -C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=   KBUILD_PARAMS="-C  SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
./conftest.sh: line 1: gcc: command not found
./conftest.sh: line 1: gcc: command not found
make[1]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
./conftest.sh: line 1: gcc: command not found
./conftest.sh: line 1: gcc: command not found
Your kernel was configured to include rivafb support!

The rivafb driver conflicts with the NVIDIA driver, please
reconfigure your kernel and *disable* rivafb support, then
try installing the NVIDIA kernel module again.

*** Failed rivafb sanity check. Bailing out! ***

./conftest.sh: line 1: gcc: command not found
Your kernel was configured to include rivafb support as
a loadable kernel module.

The rivafb driver conflicts with the NVIDIA driver; the
NVIDIA kernel module will still be built and installed,
but be aware that the NVIDIA driver will not be able to
function properly if the rivafb module is loaded!

*** Failed rivafb module sanity check, but continuing! ***

gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -UDEBUG -U_DEBUG -DNDEBUG -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6111  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86       -I. -I/lib/modules/2.6.7-1-k7/build/include -Wno-cast-qual -Wno-error nv.c
make[1]: gcc: Command not found
make[1]: *** [nv.o] Error 127
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make: *** [build-stamp] Error 2
WOLFK-DESK-NIX:/usr/src/modules/nvidia-kernel#
Any suggestions?
 
Old 08-28-2004, 02:34 AM   #2
dimi
Member
 
Registered: May 2003
Location: Sydney, Australia
Distribution: Debian
Posts: 67

Rep: Reputation: 15
Heres a much easier option, go to the url below and download the driver u want and just execute the file.

I've got a nVidia GeForce FX Go 5200 and i'm using NVIDIA-Linux-x86-1.0-5336-pkg1.run (old version) with kernel 2.6.5. works perfectly. Once the drivers as built u just need to load the module and restart X.

http://www.nvidia.com/object/linux.html

Good luck
D
 
Old 08-28-2004, 04:35 AM   #3
Tsumeone
Member
 
Registered: Jun 2004
Posts: 26

Original Poster
Rep: Reputation: 15
I tried their installer but it ran into a few problems and ultimately didn't work... I don't remember what it said right now.
 
Old 08-28-2004, 08:38 AM   #4
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Rep: Reputation: 15
I had several problems using the 5336 driver with a 2.6 kernel, but the latest driver works fine.

Try that. If it doesn't work, then for somebody to be able to help they'll need your error messages.
 
Old 08-28-2004, 10:40 AM   #5
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
make sure you have the kernel headers installed.

Code:
su -c "apt-get install kernel-headers-$(uname -r)"
then download the 6111 version of the nvidia driver from their site and run the installer.


Last edited by zero79; 08-28-2004 at 10:48 AM.
 
Old 08-28-2004, 11:33 AM   #6
greg108
Member
 
Registered: Aug 2003
Location: CA USA
Distribution: FC2, FC4, Mandrake 10, Slackware 10, RedHat 9, Suse 9.1, College Linux, Debian Sarge, Gentoo
Posts: 170

Rep: Reputation: 30
I had the same problem and I had to recompile kernel.
I used this article.
It wasn't really difficult.
And then Nvidia drivers installed with no problem.
 
  


Reply



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
Nvidia drivers on Deb Sarge 3.1 lostdata Linux - Newbie 1 08-10-2005 04:01 AM
Nvidia on debian sarge fevel Debian 24 04-09-2005 05:42 PM
Rivafb error with nVidia drivers on Debian Sarge mp4 Linux - Hardware 6 08-22-2004 12:48 AM
Help - nVidia drivers (6011) - Debian Sarge (2.6.7 kernel) BaptismOfFire Linux - Hardware 8 08-15-2004 12:47 PM
Installing Nvidia drivers for sarge on 2.6.5 r3dhatter Debian 7 05-14-2004 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:55 AM.

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