SlackwareThis Forum is for the discussion of Slackware 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'm using slackware for a few years and i have manage to resolve the problems but now i'm stuck with this:
This is the kernel-* that i have installed:
/var/log/packages/kernel-generic-2.6.24.5-i486-2 /var/log/packages/kernel-modules-2.6.24.5-i486-2
/var/log/packages/kernel-headers-2.6.24.5-x86-2 /var/log/packages/kernel-source-2.6.24.5-noarch-2
The gcc-* packages are:
gcc-4.2.3-i486-1 gcc-g++-4.2.3-i486-1
I have a nvidia geforce ti 4200 and i'm trying to install the driver NVIDIA-Linux-x86-96.43.05-pkg1.run
when i'm trying to install the driver i get this error:
**************************************************************
ERROR: The kernel header file
'/lib/modules/2.6.24.5/build/include/linux/version.h' does not exist.
The most likely reason for this is that the kernel source files in
'/lib/modules/2.6.24.5/build' have not been configured.
altho I am not a slacker....installing a kernel is not enough.....pls reboot and boot into your new kernel so the system sees your config and modules matching before you attempt to build your new nvidia module.
Just installed slack-12.1
Had problems installing NVidia too, although I had the generic-smp and source and headers installed.
The NVidia driver good for 2.6.24.4 (on 12.0 current) gave errors.
After downloading the newest (NVIDIA-Linux-x86-173.14.05-pkg1.run) compilation was no problem.
wadsworth's advice is the correct advice. Although aus9's advice is correct, I would assume you have rebooted since installation -- but I could be wrong. micder's advice is not applicable in your case since you have to use legacy drivers for your (older) card, but since you're using the newest version of the legacy drivers you should be fine. Please read CHANGES_AND_HINTS.TXT and UPGRADE.TXT very thoroughly (even if you're not upgrading), as most of the problems you may encounter are explained there. They are both considered official documentation, and you should read them (and some of the other text files on your Slackware CDs/DVD/your favourite mirror) before asking questions.
Quote:
Originally Posted by CHANGES_AND_HINTS.TXT
Use one of the provided generic kernels for daily use. Do not report
bugs until/unless you have reproduced them using one of the stock
generic kernels. You will need to create an initrd in order to boot
the generic kernels - see /boot/README.initrd for instructions.
Quote:
Originally Posted by CHANGES_AND_HINTS.TXT
As stated earlier, it is recommended that you use one of the generic kernels
rather than the huge kernels; the huge kernels are primarily intended as
"installer" and "emergency" kernels in case you forget to make an initrd.
For most systems, you should use the generic SMP kernel if it will run,
even if your system is not SMP-capable. Some newer hardware needs the
local APIC enabled in the SMP kernel, and theoretically there should not be
a performance penalty with using the SMP-capable kernel on a uniprocessor
machine, as the SMP kernel tests for this and makes necessary adjustments.
Furthermore, the kernel sources shipped with Slackware are configured for
SMP usage, so you won't have to modify those to build external modules
(such as NVidia or ATI proprietary drivers) if you use the SMP kernel.
If you decide to use one of the non-SMP kernels, you will need to follow the
instructions in /extra/linux-2.6.24.5-nosmp-sdk/README.TXT to modify your
kernel sources for non-SMP usage. Note that this only applies if you are
using the Slackware-provided non-SMP kernel - if you build a custom kernel,
the symlinks at /lib/modules/$(uname -r)/{build,source} will point to the
correct kernel source so long as you don't (re)move it.
If you decide to use one of the huge kernels anyway, you will encounter
errors like this:
kobject_add failed for uhci_hcd with -EEXIST, don't try to register
These occur because the respective drivers are compiled statically into the
huge kernels but udev tries to load them anyway. These errors should be safe
to ignore, but if you really don't want them to appear, you can blacklist the
modules that try to load in /etc/modprobe.d/blacklist. However, make sure you
remove them from the blacklist if you ever decide to use the (recommended)
generic kernels.
wadsworth's advice is the correct advice. Although aus9's advice is correct, I would assume you have rebooted since installation -- but I could be wrong. micder's advice is not applicable in your case since you have to use legacy drivers for your (older) card, but since you're using the newest version of the legacy drivers you should be fine. Please read CHANGES_AND_HINTS.TXT and UPGRADE.TXT very thoroughly (even if you're not upgrading), as most of the problems you may encounter are explained there. They are both considered official documentation, and you should read them (and some of the other text files on your Slackware CDs/DVD/your favourite mirror) before asking questions.
Thx for the help!
So, i'm not a newbie and i'm not an expert. :-D
I use slackware for 4 or 5 years, i have rebooted and created an initrd because i use reiserfs... blá, blá!
I know for this version of kernel (2.6.24.5) that is a patch, (NVIDIA_kernel-96.43.05-2290218.diff.txt) which i have installed but meanwhile i remember that the problem could be in kernel-headers, so... i'v installed the version 2.4.33 from slack 11.0 and the ver 2.6.24.5 for the other packages.
and the error when i tried to install nvidia driver is this:
ERROR: The kernel header file
'/lib/modules/2.6.24.5/build/include/linux/version.h' does not exist.
The most likely reason for this is that the kernel source files in
'/lib/modules/2.6.24.5/build' have not been configured.
I know for this version of kernel (2.6.24.5) that is a patch, (NVIDIA_kernel-96.43.05-2290218.diff.txt) which i have installed but meanwhile i remember that the problem could be in kernel-headers, so... i'v installed the version 2.4.33 from slack 11.0 and the ver 2.6.24.5 for the other packages.
It's been said many times in these forums, but here goes. NEVER upgrade/downgrade your kernel headers unless you upgrade/downgrade glibc as well. You should restore your kernel headers to their former state (2.6.24.5). You will likely have problems compiling ANYTHING, or at least a large subset of programs as it stands. I should note that I'm *assuming* that you're using 12.1 -- you actually haven't stated whether you're using 11.0 or 12.1 at the moment, and whether it was a clean install or an upgrade (and if you upgraded, you are required to upgrade from 11.0 to 12.0 and THEN to 12.1).
Well, after googling to see if the patch really was necessary, I came across a thread of yours from another forum which states that you have resolved the problem. If I am incorrect, please say so and I will try to help further.
[edit]I see I should have refreshed the page before posting. I will say that your system is definitely not in an optimal state right now, as it's difficult to see what is different than a normal install. As long as it works, great, I guess, you're just much more of a risk-taker than I am, I guess.[/edit]
It's been said many times in these forums, but here goes. NEVER upgrade/downgrade your kernel headers unless you upgrade/downgrade glibc as well. You should restore your kernel headers to their former state (2.6.24.5). You will likely have problems compiling ANYTHING, or at least a large subset of programs as it stands. I should note that I'm *assuming* that you're using 12.1 -- you actually haven't stated whether you're using 11.0 or 12.1 at the moment, and whether it was a clean install or an upgrade (and if you upgraded, you are required to upgrade from 11.0 to 12.0 and THEN to 12.1).
Well, after googling to see if the patch really was necessary, I came across a thread of yours from another forum which states that you have resolved the problem. If I am incorrect, please say so and I will try to help further.
[edit]I see I should have refreshed the page before posting. I will say that your system is definitely not in an optimal state right now, as it's difficult to see what is different than a normal install. As long as it works, great, I guess, you're just much more of a risk-taker than I am, I guess.[/edit]
Hi there!
Is this what i like... discuss and learn!
I've been using Slackware for 4 or 5 years and i'm always learning.
When i upgrade to 12.1 and try to install the nvidia drivers i've got an error in kernel headers (I think for 1st time...) and so after some reboots, i think, what the hell, i install kernel-* 2.4.33 and downgrade gcc and gcc++. Install nvidia and work. Then i upgrade the kernel except the headers and install nvidia... not work! So i do a make modules and everything works, (The problem was not in headers...) ok now you told me that we should not up/down headers without up/down glibc. Damn it, this i didn't know! As i didn't compile anything i don't know if works...
I'm gonna upgrade kernel headers...
(I have to go, wife and daughter waiting)
Yes my system is not in a optimal state and yes i'm a risk tasker... :-D
Thx a lot!
See ya!
Sorry for my bad english
Last edited by eddygrinder; 06-08-2008 at 04:39 AM.
If you have trouble, you may need this. But I'm not 100% positive how you upgraded your glibc, so you may not need that. Just thought I would provide it in case you did. Also, some of the older nVidia drivers won't compile with the newer kernels. You have to use at least 169.12 (though you can now use 173.14.05 if you want) with 12.1. Again, I'm not sure if this is applicable to you, but just thought I'd mention it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.