LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-25-2007, 08:34 AM   #1
Eppo
Member
 
Registered: Feb 2007
Location: NY
Distribution: Arch, Ubuntu
Posts: 77

Rep: Reputation: 27
config.h


where does that file come from?
a little background, i'm trying to install the nvidia drivers, and its failing because it cant find the /include/linux/config.h
it seems that the headers for 2.6.17 which came with the edgy install had that file, but i upgraded to fiesty which uses 2.6.20, but that file isnt in there. i tried installing a bunch of the header's available, none of them came with it. then i went and installed the 2.6.20 kernel from scratch. and its still not there. where does it come from? what do i have to add in the kernel to add it? or do i have to just do something to the header to get it?
please help me out with this, i've been messing around for hours, and i'm sure it something quick and stupid, but i'm getting really frustrated.
thanks
Eppo
 
Old 03-25-2007, 08:53 AM   #2
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Rep: Reputation: 62
They did away with the config.h file as of 2.6.19.
Most new modules won't complain about this but I too have to install nvidia legacy modules and the installer doesn't work unless it finds config.h

Anyway, I just "stole" the config.h from a 2.6.18 kernel and it seems to fix it.

I haven't ever used edgy/fiesty, but in VectorLinux (and Slackware, because Vector is a Slackware derivative), I just run this command as root in my terminal to create a config.h in my kernel source tree:

Code:
cat > /usr/src/linux-2.6.19.7/include/linux/config.h << EOF
#ifndef _LINUX_CONFIG_H
#define _LINUX_CONFIG_H
/* This file is no longer in use and kept only for backward compatibility.
 * autoconf.h is now included via -imacros on the commandline
 */
#include <linux/autoconf.h>

#endif
EOF
Don't forget to adjust the path to your kernel sources!

Hope this helps

Last edited by easuter; 03-25-2007 at 08:54 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 9.3 yast2 hangs saving boot config or edit config deh6 SUSE / openSUSE 0 07-16-2006 03:43 PM
REDHAT 6.2 config / modules : usb storage, wired network, x config audan Linux - Hardware 2 02-18-2006 05:23 PM
I have an XF86 config file for video, how do I turn it into XORG config lowpingnoob Linux - Newbie 18 06-12-2005 12:07 PM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 09:36 AM
krfb --config; Format of config file? Need to allow ports below 1024. SavvyPlayer Linux - Software 0 10-16-2004 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration