LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Basic Kernel Program Compilation problem (https://www.linuxquestions.org/questions/linux-newbie-8/basic-kernel-program-compilation-problem-616800/)

jana05 01-28-2008 04:25 AM

Basic Kernel Program Compilation problem
 
Hello all,

I am a newbie and I am struck :(( and stuck. I got FC6 installaed up and running. I am using the hello.c (just the hello world on init and goodbye cruel world on exit) of LDD 3rd ed (Al Rub, et al...). Now I compiled this file with a Makefile containing just obj-m := hello.o and the command I gave was just make. The error was
make: *** No targets. Stop

Searching I found that my system does have the source. What is the procedure to install and make the source usable? How do I make this sample module work? I am stuck at this initial phase itself. Pls help

Thanks in advance.
Jana

bathory 01-28-2008 05:40 AM

You should use your package manager to install the kernel-source-xyz package (where xyz matches your running kernel version).

Regards


All times are GMT -5. The time now is 12:16 PM.