Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> missing header files
yassine
post Apr 26 2009, 12:59 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 26-April 09
Member No.: 14,422



so first of all I have kubuntu.I'm trying to compile a driver code for a sample mouse and keyboard, and the code refers to the two following header files:

#include <linux/config.h>
#include <linux/module.h>

and the rules.make file has the following rule:

ifndef KERNELDIR
KERNELDIR = /usr/src/linux-headers-2.6.29.11
endif
# The headers are taken from the kernel
INCLUDEDIR = $(KERNELDIR)/include

and the make files has

install:
install -d $(INSTALLDIR)
install -c usbsample.o $(INSTALLDIR)

PROBLEM:
when i run the make file in the command prompt, i get :
error :linux/config.h: No such file or directory
error :linux/module.h: No such file or directory

(you can get the whole thing from http://examples.oreilly.com/linuxdrive2/ld...es-1.0.1.tar.gz where the usb folder has the c code with the include statements talked about, and the rules.make can be found at the root folder)

thank you very much for your help.
hoping to hear from you all soon,
Yassine!

ps: if u're going to ask me to compile my kernel, would u please show me how! i'm still a newbie! thanks again
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
michaelk
post Apr 26 2009, 02:41 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,797
Joined: 23-January 03
Member No.: 360



This should install the files you need to compile your drivers.
sudo aptitude install build-essential
Go to the top of the page
 
+Quote Post

Posts in this topic
- yassine   missing header files   Apr 26 2009, 12:59 PM
- - michaelk   This should install the files you need to compile ...   Apr 26 2009, 02:41 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2017 - 06:33 PM