LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 09-11-2009, 06:29 PM   #1
fatimap
LQ Newbie
 
Registered: Aug 2009
Posts: 4
Thanked: 0
Cannot find linux/config.h


[Log in to get rid of this advertisement]
Hello,
I am fairly new to the forum. I am trying the build the scull module from LinuxDeviceDriver examples and ran into the following issue:

"
adminuser@VirtualBoxImages-desktop:~/Desktop/examples/scull$ make
make -C /lib/modules/2.6.27-7-generic/build M=/home/adminuser/Desktop/examples/scull LDDINC=/home/adminuser/Desktop/examples/scull/../include modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic'
CC [M] /home/adminuser/Desktop/examples/scull/main.o
/home/adminuser/Desktop/examples/scull/main.c:17:26: error: linux/config.h: No such file or directory
/home/adminuser/Desktop/examples/scull/main.c:674: fatal error: opening dependency file /home/adminuser/Desktop/examples/scull/.main.o.d: Permission denied
compilation terminated.
make[2]: *** [/home/adminuser/Desktop/examples/scull/main.o] Error 1
make[1]: *** [_module_/home/adminuser/Desktop/examples/scull] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic'
make: *** [modules] Error 2
"

How can I get the config.h for the 2.6.27.7 kernel? Is there a patch file that I could use?

Thanks,
Fatima
linuxubuntu fatimap is offline  
Tag This Post
Reply With Quote
Old 09-12-2009, 03:52 AM   #2
neonsignal
Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Lenny (2.6.30-bpo kernel, Fluxbox) on Toshiba Portege 3500
Posts: 419
Thanked: 91
The config.h is now called autoconf.h. You could make a symbolic link to solve this:
Code:
cd /usr/src/linux-headers-2.6.27-7-generic/include/linux
ln -s autoconf.h config.h
linux neonsignal is offline     Reply With Quote
Thanked by:

Reply

Bookmarks


Thread Tools

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
Can't find | key in Kurumin Linux and need to change Keyboard config. issinho Linux - Laptop and Netbook 2 03-30-2006 02:54 PM
WINE - CONFIG File, can't find it to do first config Hero Doug Linux - Software 1 09-06-2005 12:03 PM
How do i find the proper linux config file? justinfl General 2 10-09-2003 12:01 AM
Cannot find gtk-config and glib-config NOT_Skeletor Linux - Software 3 06-27-2003 10:39 AM


All times are GMT -5. The time now is 04:20 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration