LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   nVidia Drivers + Debian Sarge... (https://www.linuxquestions.org/questions/debian-26/nvidia-drivers-debian-sarge-223280/)

Tsumeone 08-27-2004 07:24 PM

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?

dimi 08-28-2004 02:34 AM

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

Tsumeone 08-28-2004 04:35 AM

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.

reetep 08-28-2004 08:38 AM

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.

zero79 08-28-2004 10:40 AM

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.


greg108 08-28-2004 11:33 AM

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.


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