1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Requires Kernel Source

Discussion in 'Installation and Maintenance of Ports or Packages' started by taggedzi, May 20, 2012.

  1. taggedzi

    taggedzi New Member

    Messages:
    10
    Likes Received:
    0
    I tried to install the package rkunter from the ports, and it failed on lsof because I did not have the kernel source installed. I installed the kernel source using the svn method (9.0-Stable). When I try to compile rkhunter or lsof again using make install clean I get the error:

    Code:
    ===>  lsof-4.86,7 requires kernel sources
    *** Error code 1
    I now have the sources in the /usr/src directory, so what am I missing? How can I fix a port when it started and errored out? (specifically, how can I get lsof and rkhunter to compile?)

    Basic install info:
    amd64
    9.0 Release
    Using portsnap for port maintenance.
     
  2. adamk

    adamk New Member

    Messages:
    1,624
    Likes Received:
    0
    What's the output of:

    ls -l /usr/src/sys/

    Adam
     
  3. D4rkSilver

    D4rkSilver New Member

    Messages:
    72
    Likes Received:
    0
    Don't quote me on that but can't it be because your source and kernel version are out of sync?
     
  4. jb_fvwm2

    jb_fvwm2 Member

    Messages:
    1,580
    Likes Received:
    1
    *Sometimes* a port may not find the kernel sources even though they are present; in that case I just edit the Makefile (comment out an IGNORE block...) and build it normally. May or may not work in this case...
     
  5. taggedzi

    taggedzi New Member

    Messages:
    10
    Likes Received:
    0
    Code:
    #ls -l /usr/src/sys
    total 0
    lrwxr-xr-x 1 root wheel 12 May 20 00:42 sys -> /usr/src/sys
    
     
  6. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,672
    Likes Received:
    26
    Did you run a make clean on the ports that failed to build earlier?
     
  7. taggedzi

    taggedzi New Member

    Messages:
    10
    Likes Received:
    0
    Yep, I did run make clean from within the /usr/ports/systutils/lsof I ran it after downloading the kernel, and just now to make sure I got it right.
     
  8. taggedzi

    taggedzi New Member

    Messages:
    10
    Likes Received:
    0
    Moved on.

    Rather than mess with it, I just used
    # pkg_add -r lsof
    then rkhunter installed without issue.
     
  9. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,252
    Likes Received:
    25
    That says you don't have the source installed.
     
  10. dfairles

    dfairles New Member

    Messages:
    4
    Likes Received:
    0
    How do you install the source now?
     
  11. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,252
    Likes Received:
    25