Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 have tried getting the Nvidia drivers working for about 2 hours now. They simply refuse. I use the bareacpi.i kernel from the Slackware 10 cd. The first thing the installer says is that it can't find a precompiled kernel image for my kernel and asks if it should download it. Of course, it can't find one to download either. Then it says that it will compile one. Then, it complains about gcc (the order might be messed up, can't remember). It asks if I should ignore the error. Answering "yes" will bring me to an error about /usr/src/nv/conftest.sh. Nothing I have found on the internet have been very helpful. I have tried modifying the conftest.sh, didn't work. I have tried with 2.6.8.1, wont work there either. I have tried older drivers. Won't work. Is there a way of installing drivers for Nvidia cards in Linux? The urge of throwing Linux in the wall and installing Windows again is rising.
The gcc error is because you're using a different version compiler than the one your kernel is compiled with. For me the only thing that worked was downgrading to the gcc I compiled the kernel with or recompiling the kernel with your current gcc.
The kernel source is downloadable from www.kernel.org . Untar it in /usr/src and make a symbolic link linux to it. The driver should now recognize it.
a couple of things to try. make sure your running kernel and kernel source versions are the same, if not just rename the source to match the running kernel(to avoid bogus error messages) do a 'make cloneconfig' and 'make prepare-all' from within /usr/src/linux. try running the nvidia installer with --kernel-source-path=/usr/src/linux appended to the normal sh. NVIDIA-Linux-blah-blah.run line.
root@david:/usr/src/linux-2.6.8.1# make cloneconfig
bash: make: command not found
root@david:/usr/src/linux-2.6.8.1# make prepare-all
bash: make: command not found
root@david:/usr/src/linux-2.6.8.1#
I have installed the 2.6.8.1 kernel along with the source. I figured /usr/src/linux-2.6.8.1 would be the correct source path. Still not working.
How do I check what version of gcc the kernel is compiled with?
Nothing has worked yet. I am beginning to think that there is something wrong with my hardware soon. Even though it works just fine in Windows XP. It can't be that hard to make drivers that actually work, can it?
It's sort of a shortcut to the folder (if you do "cd linux" it will bring you to the linux-2.6.8.1 folder). It's easier to use cause programs search for /usr/src/linux as that one isn't dependent on versions but links to the proper kernel source.
Is that for an error you're getting or do you have another error?
Originally posted by darkleaf It's a software problem btw. Nothing wrong with your hardware . I think you're now having the error with the wrong gcc version isn't it?
Yes. Is there anyway of checking what version the kernel was compiled with? I downloaded the packages for 2.6.8.1..
Ok, looking back through your other posts, I'm not sure you even have the required development tools installed to build the module:
Quote:
root@david:/usr/src/linux-2.6.8.1# make cloneconfig
bash: make: command not found
root@david:/usr/src/linux-2.6.8.1# make prepare-all
bash: make: command not found
root@david:/usr/src/linux-2.6.8.1#
You mention swaret, so I assume you're using Slackware? Anyway, what's your output for these commands?
gcc -v
ld -v
make -v
If you get command unknown, then most likely gcc, make and binutils aren't installed. If that's the case, then you'll need to install the them.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.