Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
i get this error Code: * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.15.1 * ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Enthusiast crashandburn0420's Avatar
    Join Date
    Jun 2005
    Location
    Naugatuck, CT
    Posts
    590

    Angry emerge -uvD world error


    i get this error
    Code:
     * Determining the location of the kernel source code
     * Found kernel source directory:
     *     /usr/src/linux
     * Found sources for kernel version:
     *     2.6.15.1
    
     * getfilevar requires 2 variables, with the second a valid file.
     *    getfilevar <VARIABLE> <CONFIGFILE>
     * Could not find a usable .config in the kernel source directory.
     * Please ensure that /usr/src/linux points to a configured set of Linux sources.
     * If you are using KBUILD_OUTPUT, please set the environment var so that
     * it points to the necessary object directory so that it might find .config.
    
    !!! ERROR: media-sound/alsa-driver-1.0.10-r2 failed.
    !!! Function linux-info_pkg_setup, Line 534, Exitcode 1
    !!! Unable to calculate Linux Kernel version
    !!! If you need support, post the topmost build error, NOT this status message.

  2. #2
    Linux Enthusiast crashandburn0420's Avatar
    Join Date
    Jun 2005
    Location
    Naugatuck, CT
    Posts
    590
    ::bump!!!::

  3. #3
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    Have you tried with just -uv without the D?
    Have you tried, "emerge gentoo-sources"?
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User Muser's Avatar
    Join Date
    May 2004
    Location
    Maryland
    Posts
    363
    Have you actually build from that kernel source? It seems to have a problem finding your kernel configuration (.config file)

  6. #5
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Stockholm, Sweden
    Posts
    1,296
    cd /usr/src/linux

    make menuconfig > exit > save yes

    emerge uDv world will now work

  7. #6
    Linux Enthusiast crashandburn0420's Avatar
    Join Date
    Jun 2005
    Location
    Naugatuck, CT
    Posts
    590
    doesn't work

  8. #7
    Linux Enthusiast gruven's Avatar
    Join Date
    Dec 2004
    Location
    Arkansas
    Posts
    541
    Make sure /usr/src/linux points to your current working kernel.
    Code:
    ls -l /usr/src/linux
    If that doesn't match your 'uname -r' then delete the symlink and create one that points to your current kernel. then do the make menuconfig, exit, save, and it should work.

    Linux User #376741
    Code is Poetry

  9. #8
    Linux Enthusiast crashandburn0420's Avatar
    Join Date
    Jun 2005
    Location
    Naugatuck, CT
    Posts
    590
    Quote Originally Posted by gruven
    Make sure /usr/src/linux points to your current working kernel.
    [code]
    ls -l /usr/src/linux
    [code]

    If that doesn't match your 'uname -r' then delete the symlink and create one that points to your current kernel. then do the make menuconfig, exit, save, and it should work.
    so what do i write?

  10. #9
    Linux Enthusiast gruven's Avatar
    Join Date
    Dec 2004
    Location
    Arkansas
    Posts
    541
    to make the symlink match your current kernel, then you would do a
    Code:
    uname -r
    then, do a
    Code:
    cd /usr/src
    Then, you will find the source for the current running kernel that matched your uname -r.

    You would delete the symlink
    Code:
    del /usr/src/linux
    and recreate the symlink from the source code of the current running kernel
    Code:
    ln -s 'uname -r' linux
    substitute the kernel source directory for 'uname -r' without the single quotes. This is all in the installation manual.

    Linux User #376741
    Code is Poetry

  11. #10
    Linux Enthusiast crashandburn0420's Avatar
    Join Date
    Jun 2005
    Location
    Naugatuck, CT
    Posts
    590
    i want to update my kernel then do that...so how do i update my kernel?

Page 1 of 2 1 2 LastLast

Posting Permissions

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