View Full Version : trouble installing 1.0-4349 drivers.
i am using debian woody, and have a Geforce2MX card.
first i tried running NVIDIA-Linux-x86-1.0-4349.run but it was unablt to find the kernel header, so i install the correct kernal header and it's still the same, i also tried running the program with -kernel-/usr/src/kernel-headers-2.2.20-idepci and its still the same.
i also tried unpacking the .run file and then install manualy, but then it says [gcc check] error 1.
i tried inserting IGNORE_CC_MISMATCH in the Makefile, but that dosen't help it just writes missing seperator.
i'm new to linux so any help would be appreciatet
btw. the output of gcc -dumpversion is 2.95.4 and the output of cat /proc/version is gcc version 2.7.2.3
That's your problem -- there's a compiler version mismatch.
What you need to do is recompile your kernel with your system compiler, boot to the new kernel, and then retry the nVidia drivers.
blubb0r
04-13-03, 05:43 AM
Help
how do i recompile my kernel? im a REALLY new to linux, and dont know how to do this.
got the same problem, the driver doesnt find my kernel header files.
thx for help
If the problem is just that it doesn't find the headers, then you can fix the problem by installing your distro's kernel-source package.
If you're getting a "compiler version mismatch" message in your nvidia-installer.log file (which is in /var/log), and if you are using Debian, then yes, you should recompile your kernel, as the Debian default kernel (in Woody at least) was compiled with an extremely old version of gcc, that isn't even installed in Woody anymore.
If you're getting compiler mismatches and you don't use Debian, though, then look into /proc/version and gcc -dumpversion to see which is newer. You may be able to fix the problem by upgrading gcc, or installing it if it isn't. Post the contentst of /proc/version and the output of gcc -dumpversion, too.
blubb0r
04-13-03, 01:13 PM
Well i installed a new kernel via apt-get, the 2.4.18-k7, and it was the same problem.
any ideas?
will try that with recompiling and pointing at the headers.
pointing at the headers didnt work with 2.2.20 as far as i remember, so lets try with the new.
Well, I do believe I asked for the contents of /proc/version and the output of gcc -dumpversion, so if you want to provide that information, you'll get a bit better answer from me...
blubb0r
04-13-03, 06:08 PM
um sorry... but i looked that stuff up, and it says 2.95.4 in both cases, so it cant be that mismatch.
pleese help
i want to play quake3 and ut2k3 ^^
well my problem is the kernel headers.
they arent found even if i point at them.
c4p3d_crus4d3r
04-13-03, 06:30 PM
Post your installer log
blubb0r
04-13-03, 06:36 PM
so should i make it with makefile again, or u mean the errormessages with sh NVIDIA-Linux.... ?
with that sh option, its always that he doesnt findt my kernel-headers.
i apt-gettet them for both my 2.2.20 kernel and my 2.4.18. do i have to make more that apt-get to install the headers?
otherwise, i would have to make it with make again to get the error messages.
sorry. im very new to linux
Don't bother with make, try to get the installer working. Tarballs won't be provided outside the installer framework in the future anyway (which doesn't make much sense to me, but I don't decide this kind of stuff, so oh well), so it's worthless if you can only get them to work. ;)
The installer looks for your kernel headers in /lib/modules/$(uname -r)/build/include, then (if they're not in that directory) in /usr/src/linux/include. Make sure that /lib/modules/$(uname -r)/build is a symlink to the base of your kernel source tree, or make sure that /usr/src/linux is a symlink to the base of the source tree. I believe that Debian's "kernel-headers" package is just kernel-source for any other distro, and I'm pretty sure it installs in /usr/src/linux-<version>/include.
blubb0r
04-13-03, 07:08 PM
Well how do i do that?
I mean making sure that /usr/src/linux is a symlink to the base of the source tree?
I just apt-gettet the kernel-headers, and they where put into /usr/src. if i cd there and make ls, all i see is a file named kernel-headers-2.2.40/2.4.18-k7
nothing more or less.
maybe i have to do something more to install them?
sorry im so noobish
Go into /usr/src and type:
ln -s kernel-headers-2.4.18-k7 linux
to create the /usr/src/linux symlink.
blubb0r
04-14-03, 09:10 AM
Whew finally worked. It tried to make a file for both of my kernels, but only worked with the new one (as already said).
Thank u very much, finally i cain look forward to playing quake3 on linux.
that was the final step away from windows i think.
Thank you!
Btw: is there something in the readme what could have solved my problem?
afrosheen
04-14-03, 03:08 PM
I doubt the readme would've told you anything about building kernel modules. It's just common knowledge in the linux world that if you're doing development work, you need development packages installed. So, if you're gonna build kernel modules, you need the kernel source package installed (which includes the kernel headers).
In the future if you try to build software and hit a brick wall, look at make's output and go find the dev library it's missing.
Just making a note to anyone running Debian Sid/Unstable with xserver-xfree86 4.2.1 and the kernel-image-*...
In my case I was using kernel-image-2.4.20-1-k7 so I installed kernel-headers-2.4.20-1-k7... Then I did an 'export CC=gcc-2.95' followed by a './NVIDIA-Linux-x86-1.0-4363.run --kernel-include-path /usr/src/kernel-headers-`uname -r`/include" and it was able to build an install without a problem... This should work for any pre-compiled kernel binary package but would need to be changed if you compiled your own kernel...
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.