Kernel configuration could not be read??
I'm running SuSE 8.2 and trying to install the Nvidia drivers for my Geforce4 Ti 4400 video card. I follow all the instructions and the nvidia installer starts but says it needs to recompile and wants to do it from the ftp site but it always returns an error.
So I'm checking things out and go into Kde control center and click on Linux kernel and it returns this message: The kernel configuration could not be read due to the following error: cannot open /usr/src/linux/arch//config.in for reading Either your kernel sources contain invalid configuration rules or you just found a bug in the KDE Kernel Configurator. Any advice on how to proceed?? rberry88 :newbie: |
Install kernel-source
# Compiling/installing kernel modules You will need to have installed: 1. The developmental packages (compiler) 2. The kernel source code that matches your running kernel 3. The module source or install code Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed: Code:
[fancy@tinwhistle fancy]$ su - Code:
[root@tinwhistle root]# cd /usr/src If you don't see something similiar to this (but in color), you will need to install the kernel source. NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need, so I may as well make one now to save editing the files in the source code to install.So, I'll make it just now: Code:
[root@tinwhistle src]# ln -s linux-2.4.18-3 linux Next, did I install the compiler? Code:
[root@tinwhistle src]# gcc -v If you don't have those two things installed, you have to install them first off your install CD. If they are installed, download the source and happy comiling. :tisk: Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing. :study: # Guides to software management LNAG - How do I install a program I downloaded from the Internet? Rute Guide's software explanation You might want to check out CheckInstall to manage source code installations/uninstallation |
I believe I have big problems:
-------------------------------------------- rberry88@linuxxp:~> su Password: linuxxp:/home/rberry88 # uname -r 2.4.20-4GB-athlon linuxxp:/home/rberry88 # cd /usr/src linuxxp:/usr/src # ls -alc total 0 drwxr-xr-x 3 root root 72 2003-08-24 10:26 . drwxr-xr-x 12 root root 368 2003-08-25 21:59 .. drwxr-xr-x 7 root root 168 2003-08-24 10:32 packages linuxxp:/usr/src # -------------------------------------------------------------- Now I have checked all the boxes in YAST2 under 'install and remove software' except for: k_deflt, k_psmp and k_smp. Is one of these needed to accomplish what I want to do?? Thanks for being patient. rberry88 |
Can you find a package with the name kernel-source in it?
|
I searched through KPackage and in YAST2 'install and remove software' and nothing with kernel and source comes up.
Is it supposed to be on the installation discs that I got when I purchased SuSE 8.2?? If it is not on the discs could you point me to where I can get it. rberry88 |
I would guess you could find it in the SuSE ftp site somewhere
ftp.suse.com/pub/suse/i386/8.2/ |
Your kernel source should be installed under /usr/src/linux*** where *** is the kernel version. I don't think this is your problem however. I've seen a few problems with SuSE and the NVidia drivers due to a problem with the kernel.h file in the include directory.
There may be an easy solution. You're running an athlon processor under SuSE 8.2, which installs your kernel as 2.4.20-4GB-athlon. This is correct, and the source under /usr/src/linux is correct. But SuSE has a known bug in the install. under /usr/src/linux***/include/linux/version.h there will be a line that says "2.4.20-4GB". Use an editor and change this to "2.4.20-4GB-athlon" and save the file. Then run the nvidia installer with the --kernel-version=2.4.20-4GB-athlon option and it should work. Good Luck, Gizmo |
The problem was I didn't have the kernel-source on my system. I downloaded it from the ftp site and -ivh it and everything works wonderfully. Now on to fix my sound problem.
I am so happy that I can at least play Tux Racer. rberry88 |
All times are GMT -5. The time now is 09:32 AM. |