LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-07-2007, 02:28 AM   #1
Reisswolf
Member
 
Registered: Jun 2007
Posts: 67

Rep: Reputation: 15
I know there is no Gentoo sub-forum, but...


...I thought I would post this anyway. Hoepfully someone can help me out.

I've just managed to get Gentoo up and running. After the installation I first ran

# emerge --sync

Then I ran

# emerge -uavDN world

According to the line in the title bar of the terminal window, the command was set to update 295 packages. On the 167th package I got the following error:

Quote:
* Found kernel source directory:
* /usr/src/linux
* 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: sys-fs/cryptsetup-luks-1.0.4-r3 failed.
Call stack:
ebuild.sh, line 1637: Called dyn_setup
ebuild.sh, line 704: Called qa_call 'pkg_setup'
ebuild.sh, line 44: Called pkg_setup
cryptsetup-luks-1.0.4-r3.ebuild, line 47: Called linux-info_pkg_setup
linux-info.eclass, line 554: Called die

!!! Unable to calculate Linux Kernel version
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-fs/cryptsetup-luks-1.0.4-r3/temp/build.log'.
Earlier, after running syncing with emerge I saw a message asking me to merge or update two config files in /etc. I tried to find information with Google on how to do that, but nothing came up. So I thought I would go ahead and run "emerge -uavDN world."

I wonder if the problem is being caused by the fact that I have not merged the config files in /etc. If so, can someone please tell me how I can find and merge those files?

Thanks in advance for your help.
 
Old 07-07-2007, 03:19 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
* 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.

You may not have the kernel sources installed (or installed correctly). Have you checked this?

ls -l /usr/src/linux
 
Old 07-08-2007, 11:40 AM   #3
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi,

as Simon says, you should check that the linux kernel sources that you are using right now; to change this easily, use eselect kernel (then you get the instructions on how to use it).

Quote:
can someone please tell me how I can find and merge those files?
Simply run etc-update

Serafean
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo Vs. Slack? and why no Gentoo forum? kersten78 Linux - Distributions 1 09-19-2004 11:25 AM
Why is there no GENTOO FORUM? enigma Z Linux - Distributions 3 09-01-2004 01:39 AM
no gentoo forum? shanenin Linux - General 3 11-11-2003 10:41 AM
No Gentoo Forum? Nu-Bee Linux - General 2 11-05-2003 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration