Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I don't know where to put this question correctly, Redhat box or Kernel box. But it's a problem in kernel programming so I thought it may sit here . ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! dongthao's Avatar
    Join Date
    May 2006
    Posts
    5

    Unhappy Module Programming Problem in Redhat


    Hi,
    I don't know where to put this question correctly, Redhat box or Kernel box. But it's a problem in kernel programming so I thought it may sit here .
    I have just had a start in kernel module programming. All I have were a Redhat Enterprise WS3 box and "The Linux Kernel Programming Guide". When I tried to compile my first module as the instruction
    Code:
    [root@pcsenonsrv test_module]# make −C /usr/src/linux−`uname −r` SUBDIRS=$PWD modules
    I found that the directory /usr/src/linux didn't exist in Redhat. And I have tried to find a equivalent directory but nothing appeared. What can I do in this case? How can I compile my modules in Redhat distro?

  2. #2
    Linux User fernape's Avatar
    Join Date
    Dec 2005
    Location
    Holland
    Posts
    301
    You need to install your kernel sources

    Best regards.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •