Kernel 의 소스 는 어디에 있나요?

lkjt의 이미지

VMware 를 설치하는데 kernel 소스의 위치를 입력하라는군요

/usr/include 로 햇더니 버젼이 다른 곳이라고 하고

디폴트 값으로 해도 안되고..

The header files in /usr/include are generally for C libraries, not for the
running kernel. If you do not have kernel header files in your /usr/src
directory, you probably do not have the kernel-source package installed. Are you
sure that /usr/include contains the header files associated with your running
kernel? [no] yes

The directory of kernel headers (version 2.6.0-test7) does not match your
running kernel (version 2.4.25-1-386). Even if the module were to compile
successfully, it would not load into the running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

어떻게 입력을 해야 정상적으로 작동을 할까요?

lkjt의 이미지

/usr/include/linux/
로 하면

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/include/linux/
 
The header files in /usr/include are generally for C libraries, not for the
running kernel. If you do not have kernel header files in your /usr/src
directory, you probably do not have the kernel-source package installed. Are you
sure that /usr/include contains the header files associated with your running
kernel? [no] yes
 
The path "/usr/include/linux" is an existing directory, but it does not contain
at least one of these directories "linux", "asm", "net" as expected.
 
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

이렇게 에러가 납니다...

vmware설치 한번 어렵군요 ㅠ ㅠ

offree의 이미지

원래 있는 /usr/src/linux/include 는 안되는지요?

제가 설치시에는 그대로 했던 것 같은데..

혹 커널소스가 설치가 안되어 있는 것인지 확인해 보시기 바랍니다.

사용자가 바꾸어 나가자!!

= about me =
http://wiki.kldp.org/wiki.php/offree , DeVlog , google talk : offree at gmail.com

Prentice의 이미지

RTFM

현재 실행중인 커널 버젼과 헤더 버젼을 일치시키세요.

apt-get remove --purge kernel-headers-2.6.0-test7
apt-get install kernel-headers-2.4.25-1

lkjt의 이미지

저도 일치는 시켜야 되는건가 햇는데...

전에 설치할때는 이런 문제가 없어서, 혹 제가 잘못햇나 하고 올렷는데...

감사합니다.

lkjt의 이미지

이상하군요...

패키지를 찾을수 없다는데...흠,,,

apt-get remove --purge kernel-headers-2.6.0-test7
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-headers-2.6.0-test7

Prentice의 이미지

커널 헤더 수동설치하셨으면 수동삭제해주세요.

jcly2의 이미지

/usr/include 내에 있는 asm이나 linux를 /usr/src/linux 내에 있는
(혹은 kernel source code가 설치되어져 있는 디렉토리)
asm 이나 linux를 가르키도록 symbolic link를 하던지 아니면
복사를 하시던지 하면 될 것같은데..

lkjt의 이미지

/usr/include 에도 asm이 있더군요.

lkjt의 이미지

2.4 커널을 깔았습니다.

버젼에 맞추어서

내용물들을 확인하면 다있습니다.

그런데

The path "/usr/src/kernel-headers-2.4.25-1-386/include" is an existing
directory, but it does not contain at least one of these directories "linux",
"asm", "net" as expected.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

이런 메세지가 납니다.

linux, asm, net 다 있더군요

link형식으로 있는거 같은데요...

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.