DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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#
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.