From: Glenn Enright <elinar@ihug.co.nz>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Unable to calculate Linux Kernel version [New Thread]
Date: Thu, 6 Oct 2005 06:42:15 +0000 [thread overview]
Message-ID: <200510060642.15708.elinar@ihug.co.nz> (raw)
In-Reply-To: <200510061911.32823.bogo-mipps@e3.net.nz>
Try this...
ls -l /usr/src/linux
uname -r
these should give you the same version. If not you need to adjust the linux
symlink to reflect the kernel version you are running. Then
cd /usr/src/linux
cp /boot/config-$(uname -r) ./
make oldconfig && make
Now you should be able to do the emerges you wanted to. The point is to have
your source tree in working condition, and findable, as opposed to clean.
If you run different kernel versions often, try adding a few lines
to /etc/conf.d/ like
# -- quick hack to ease work of updating kernels and make emerges consistent
#
ebegin "Refreshing kernel source link to running kernel."
rm -f /usr/src/linux
if ! ln -s /usr/src/linux-$(uname -r) /usr/src/linux
then
ewarn " Bugger ... could not update. Please manually create the"
ewarn " symbolic link '/usr/src/linux' to the running kernel
source."
ewend 1
fi
# --
--
I think we are in Rats' Alley where the dead men lost their bones.
-- T.S. Eliot
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2005-10-06 6:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-06 4:17 [gentoo-user] Unable to calculate Linux Kernel version [New Thread] Bogo Mipps
2005-10-06 4:50 ` Rumen Yotov
2005-10-06 6:11 ` Bogo Mipps
2005-10-06 6:42 ` Glenn Enright [this message]
2005-10-06 7:42 ` Glenn Enright
2005-10-06 8:04 ` Bogo Mipps
2005-10-06 9:54 ` Glenn Enright
2005-10-06 22:27 ` Bogo Mipps
2005-10-07 0:20 ` Glenn Enright
2005-10-07 22:11 ` [gentoo-user] Unable to calculate Linux Kernel version [SOLVED - SORT OF][New Thread] Bogo Mipps
2005-10-06 15:29 ` [gentoo-user] Unable to calculate Linux Kernel version [New Thread] Rumen Yotov
2005-10-07 22:12 ` [gentoo-user] Unable to calculate Linux Kernel version [SOLVED, SORT OF][New Thread] Bogo Mipps
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200510060642.15708.elinar@ihug.co.nz \
--to=elinar@ihug.co.nz \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox