kernel source 를 설치하였는 데 커널 소스 패키지가 없는 것 처럼 행동합니다.

ohver의 이미지

페도라 코어 4 를 사용하고 있습니다.

이번에 카스퍼스키 안티바이러스를 설치하면서 커널 소스가 필요하다고 하여 설치를 하였습니다.

# uname -r
2.6.17-1.2142_FC4
# rpm -qi kernel
Name : kernel Relocations: (not relocatable)
Version : 2.6.17 Vendor: Red Hat, Inc.
Release : 1.2142_FC4 Build Date: 2006년 07월 12일 (수) 오후 12시 13분 13초
Install Date: 2006년 07월 28일 (금) 오후 02시 16분 26초 Build Host: hs20-bc1-4.build.redhat.com
Group : 시스템 환경/커널 Source RPM: kernel-2.6.17-1.2142_FC4.src.rpm
Size : 40019714 License: GPLv2
Signature : DSA/SHA1, 2006년 07월 15일 (토) 오전 09시 11분 08초, Key ID ------------
Packager : Red Hat, Inc.
Summary : Linux 커널 (Linux 운영 체제의 핵심).
Description :
The kernel package contains the Linux kernel (vmlinuz), the core of
the Red Hat Linux operating system. The kernel handles the basic
functions of the operating system: memory allocation, process
allocation, device input and output, etc.

확인해보면 이와 같고,

usr/src]# ls -all
total 40
drwxr-xr-x 6 root root 4096 Nov 7 03:35 .
drwxr-xr-x 14 root root 4096 Sep 25 21:27 ..
drwxr-xr-x 2 root root 4096 Jun 3 2006 kernels
lrwxrwxrwx 1 root root 55 Nov 6 18:09 linux -> /usr/src/redhat/BUILD/kernel-2.6.17/linux-2.6.17.noarch
drwxr-xr-x 20 root root 4096 Nov 7 03:15 linux-2.6.17.i686
drwxr-xr-x 21 root root 4096 Nov 7 03:20 linux-2.6.17.noarch
drwxr-xr-x 7 root root 4096 Mar 30 2006 redhat

폴더도 이렇게 설정해 놓았습니다.
그런데, 카스퍼스키에 컴파일을 하려고 하면

# /opt/kaspersky/kav4fs/src/kavmon.pl --build [/usr/src/linux]
Cannot find kernel sources at '[/usr/src/linux]', please install a kernel source package.

계속 이렇게 됩니다.

인터넷 계속 찾아보고, 카스퍼스키도 다시 깔아보고 커널 빌딩도 다시 따라 해보고 했는 데 해결이 되지 않습니다.

도움 부탁드립니다.

세이군의 이미지

# /opt/kaspersky/kav4fs/src/kavmon.pl --build /usr/src/linux
이렇게 해 보세요 ( 대괄호[]를 삭제하고 )

ohver의 이미지

그런데 그렇게 해도 안됩니다.

bushi의 이미지

yum install kernel-devel
/opt/kaspersky/kav4fs/src/kavmon.pl --build=/lib/modules/`uname -r`/build

안된다면 kerspersky 사에 문의.

linux-2.6.26(fedora 8) 이상에선

[bushi@rose ~]$ diff -urNp /opt/kaspersky/kav4fs/src/module.linux/interface.c.orig /opt/kaspersky/kav4fs/src/module.linux/interface.c
--- /opt/kaspersky/kav4fs/src/module.linux/interface.c.orig     2008-11-07 17:45:26.000000000 +0900
+++ /opt/kaspersky/kav4fs/src/module.linux/interface.c  2008-11-07 17:59:31.000000000 +0900
@@ -77,7 +77,11 @@ int Monitor_interface_init(void)
 
        monitor_info = MEM_ALLOC(PAGE_SIZE);
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26))
+       proc_entry = create_proc_entry(KAVMON_PROC, 0644, NULL);
+#else
        proc_entry = create_proc_entry(KAVMON_PROC, 0644, &proc_root);
+#endif
 
        if (! proc_entry ) 
                return -ENOENT;
@@ -105,7 +109,11 @@ int Monitor_interface_cleanup(void)
        unregister_ioctl32_conversion(MONITOR_CONFIG_CMD);
 #endif
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26))
+       remove_proc_entry (KAVMON_PROC, NULL);
+#else
        remove_proc_entry (KAVMON_PROC, &proc_root);
+#endif
        unregister_chrdev (monitor_major, "kavmonitor");
        unregister_chrdev (exploit_major, "kavexploit");
        MEM_FREE(monitor_info);
[bushi@rose ~]$

OTL

ohver의 이미지

알려주신 대로
/opt/kaspersky/kav4fs/src/kavmon.pl --build=/lib/modules/`uname -r`/build
이렇게 하면 마찬가지로 같은 메세지가 뜨고,

# yum install kernel-devel
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: updates-released
Error: Cannot find a valid baseurl for repo: updates-released

이러한 메세지가 뜹니다.

이렇게 알려주셔도 안되면 페도라를 업데이트할까 생각중에 있습니다.

bushi의 이미지

repository 를 찾을 수 없는데, 처음 글에 적으셨던 '커널 소스 설치' 는 어떻게 하셨습니까 ?

echo kernel-devel-`uname -r`
로 나온 문자열로 google 에서 검색해서 튀어나오는 rpm을 다운로드 해서 설치하세요.

OTL

ohver의 이미지

'커널 소스 설치'는 yum 을 사용하지 않고,

인터넷에서 kernel-2.6.17-1.2142_FC4.src.rpm 을 다운 받아서 root 계정에서

rpm -Uvh kernel-2.6.17-1.2142_FC4.src.rpm

이렇게 해서 설치하였습니다.

알려주신 대로

echo kernel-devel-`uname -r`

로 나온 문자열의 rpm 다운로드 및 설치하고

/opt/kaspersky/kav4fs/src/kavmon.pl --build=/lib/modules/`uname -r`/build

이렇게 명령어를 넣어주니 컴파일이 되네요..

정말 감사합니다.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.