LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Matchup of kernel header and source, and apt-get problem (https://www.linuxquestions.org/questions/linux-kernel-70/matchup-of-kernel-header-and-source-and-apt-get-problem-551443/)

fallen3019 05-05-2007 03:58 AM

Matchup of kernel header and source, and apt-get problem
 
I just installed Linux Suse 10.1, but i'm not sure that the source files and headerfiles versions match.

i checked the source with
Code:

# uname -r
2.6.16.13-4-default


how to I check what version the header files are? (i know that i can do this somewhere in YAST but i'm not entirely sure where to find this...)

And if they are not the same, how can i get them to match?

Also.... one small other thing...
Bash does not recgonise the apt-get command... is there a way i should configure that?
because i tried to use the following, and i got the following error...

Code:

# apt-get install linux-headers-`(uname -r)`
-bash: apt-get: command not found

Thanks!

comprookie2000 05-05-2007 12:10 PM

Suse does not come with apt, did you install it?
Why do you need the headers, what are you trying to do?

fallen3019 05-06-2007 06:27 AM

Quote:

Originally Posted by comprookie2000
Suse does not come with apt, did you install it?

ok, after a lot of trouble, i solved this problem, thanks

Quote:

Originally Posted by comprookie2000
Why do you need the headers, what are you trying to do?

That would be my next problem.

What I am trying to do is find the offset of a member of the struct task_struct in sched.h.

I have a small C (standalone) program that uses the offsetof () function to find eg: 'pid' in the struct.
However this is giving me a multitude of errors, from files that are in the includes of sched.h, when i try to compile it with gcc.
I was wondering if the reason for these errors was because of the version of the headers not being the same as the kernel.. (that's why I need to check)
However,I am beginning to suspect that the problem is with gcc...


All times are GMT -5. The time now is 02:48 AM.