* [gentoo-user] asterisk zaptel-1.2.9.1 error
@ 2006-10-22 15:25 Kitti Jaisong
2006-10-22 16:47 ` Régis Décamps
0 siblings, 1 reply; 4+ messages in thread
From: Kitti Jaisong @ 2006-10-22 15:25 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 906 bytes --]
Hi all,
I'm emerge zaptel 1.2.9.1 and get error like this
checking zaptel-1.2.9.1.tar.gz ;-) ... [ ok ]
* Determining the location of the kernel source code
* 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: net-misc/zaptel-1.2.9.1 failed.
Call stack:
ebuild.sh, line 1562: Called dyn_setup
ebuild.sh, line 665: Called pkg_setup
zaptel-1.2.9.1.ebuild, line 81: Called linux-mod_pkg_setup
linux-mod.eclass, line 432: Called linux-info_pkg_setup
linux-info.eclass, line 554: Called die
please help me
ti
[-- Attachment #2: Type: text/html, Size: 1684 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] asterisk zaptel-1.2.9.1 error
2006-10-22 15:25 [gentoo-user] asterisk zaptel-1.2.9.1 error Kitti Jaisong
@ 2006-10-22 16:47 ` Régis Décamps
2006-10-22 19:08 ` Boyd Stephen Smith Jr.
0 siblings, 1 reply; 4+ messages in thread
From: Régis Décamps @ 2006-10-22 16:47 UTC (permalink / raw
To: gentoo-user
On 10/22/06, Kitti Jaisong <kittij@ttt.co.th> wrote:
>
>
>
>
> Hi all,
> I'm emerge zaptel 1.2.9.1 and get error like this
>
> checking zaptel-1.2.9.1.tar.gz ;-) ...
> [ ok ]
> * Determining the location of the kernel source code
> * 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.
You should hava a backup of your linux-kernel configuration in /boot.
use ls -al /usr/src/linux to check that the version of the kernel
source is the same than the kernel image you use. In which case you
can:
ln -s /boot/Config-<version> /usr/src/linux/.config
and try re-emerging again
--
Régis
http://regis.decamps.info/blog/
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] asterisk zaptel-1.2.9.1 error
2006-10-22 16:47 ` Régis Décamps
@ 2006-10-22 19:08 ` Boyd Stephen Smith Jr.
2006-10-24 3:04 ` kitti jaisong
0 siblings, 1 reply; 4+ messages in thread
From: Boyd Stephen Smith Jr. @ 2006-10-22 19:08 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2901 bytes --]
On Sunday 22 October 2006 11:47, "Régis Décamps" <regis@decamps.info> wrote
about 'Re: [gentoo-user] asterisk zaptel-1.2.9.1 error':
> > * 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 should hava a backup of your linux-kernel configuration in /boot.
> use ls -al /usr/src/linux to check that the version of the kernel
> source is the same than the kernel image you use. In which case you
> can:
> ln -s /boot/Config-<version> /usr/src/linux/.config
Try the script below instead, it might not fix everything, but it's less
hit-and-miss than manually searching for a configuration backup that you
may not even have.
#!/bin/bash
if [ -h /usr/src/linux ]; then
echo 'You have a /usr/src/linux symlink, good.'
if [ "$(readlink /usr/src/linux)" == "linux-$(uname -r)" ]; then
echo 'It points to your running kernel, also good.'
else
echo "But, it points to the wrong place. I'll fix it."
ln -snf "linux-$(uname -r)" /usr/src/linux || exit 127
fi
elif [ -e /usr/src/linux ]; then
echo 'You have a /usr/src/linux, but it is not a symlink.'
echo "Your system is broken, but I can't automatically fix it."
exit 1
else
echo "You don't have a /usr/src/linux, let me make one for you."
ln -snf "linux-$(uname -r)" /usr/src/linux || exit 127
fi
if [ -r /proc/config.gz ]; then
echo 'You have a /proc/config.gz, good.'
else
echo "You either don't have a /proc/config.gz or I can't read it."
echo "Sorry, I can't access the configuration of your running kernel."
exit 1
fi
if [ -r /usr/src/linux/.config ]; then
echo 'You already have a readable /usr/src/linux/.config, hrm.'
elif [ -e /usr/src/linux/.config ]; then
echo "Your /usr/src/linux/.config exists, but I can't read it."
echo "There's probably a permissions problem somewhere."
exit 1
else
echo 'No /usr/src/linux/.config, using running config.'
zcat /proc/config.gz > /usr/src/linux/.config || exit 127
exit 0
fi
if zcat /proc/config.gz | diff /usr/src/linux/.config - ; then
echo 'Your /usr/src/linux/.config and your running configuration agree.'
echo "I can't believe you wasted my CPU cycles. ;)"
exit 0
else
echo -n 'Your /usr/src/linux/.config and your running configuration '
echo -n 'are different. You should build and install, as needed, this '
echo -n 'new configuration. After doing so, you should be able to '
echo -n 'compile out-of-tree modules, but they will not be usable until '
echo 'you boot into the newly configured kernel.'
exit 1
fi
--
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] asterisk zaptel-1.2.9.1 error
2006-10-22 19:08 ` Boyd Stephen Smith Jr.
@ 2006-10-24 3:04 ` kitti jaisong
0 siblings, 0 replies; 4+ messages in thread
From: kitti jaisong @ 2006-10-24 3:04 UTC (permalink / raw
To: gentoo-user
I try to genkernel again and update in grub. it's working
thanks,
ti
Boyd Stephen Smith Jr. wrote:
> On Sunday 22 October 2006 11:47, "Régis Décamps" <regis@decamps.info> wrote
> about 'Re: [gentoo-user] asterisk zaptel-1.2.9.1 error':
>
>>> * 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 should hava a backup of your linux-kernel configuration in /boot.
>> use ls -al /usr/src/linux to check that the version of the kernel
>> source is the same than the kernel image you use. In which case you
>> can:
>> ln -s /boot/Config-<version> /usr/src/linux/.config
>>
>
> Try the script below instead, it might not fix everything, but it's less
> hit-and-miss than manually searching for a configuration backup that you
> may not even have.
>
> #!/bin/bash
> if [ -h /usr/src/linux ]; then
> echo 'You have a /usr/src/linux symlink, good.'
> if [ "$(readlink /usr/src/linux)" == "linux-$(uname -r)" ]; then
> echo 'It points to your running kernel, also good.'
> else
> echo "But, it points to the wrong place. I'll fix it."
> ln -snf "linux-$(uname -r)" /usr/src/linux || exit 127
> fi
> elif [ -e /usr/src/linux ]; then
> echo 'You have a /usr/src/linux, but it is not a symlink.'
> echo "Your system is broken, but I can't automatically fix it."
> exit 1
> else
> echo "You don't have a /usr/src/linux, let me make one for you."
> ln -snf "linux-$(uname -r)" /usr/src/linux || exit 127
> fi
>
> if [ -r /proc/config.gz ]; then
> echo 'You have a /proc/config.gz, good.'
> else
> echo "You either don't have a /proc/config.gz or I can't read it."
> echo "Sorry, I can't access the configuration of your running kernel."
> exit 1
> fi
>
> if [ -r /usr/src/linux/.config ]; then
> echo 'You already have a readable /usr/src/linux/.config, hrm.'
> elif [ -e /usr/src/linux/.config ]; then
> echo "Your /usr/src/linux/.config exists, but I can't read it."
> echo "There's probably a permissions problem somewhere."
> exit 1
> else
> echo 'No /usr/src/linux/.config, using running config.'
> zcat /proc/config.gz > /usr/src/linux/.config || exit 127
> exit 0
> fi
>
> if zcat /proc/config.gz | diff /usr/src/linux/.config - ; then
> echo 'Your /usr/src/linux/.config and your running configuration agree.'
> echo "I can't believe you wasted my CPU cycles. ;)"
> exit 0
> else
> echo -n 'Your /usr/src/linux/.config and your running configuration '
> echo -n 'are different. You should build and install, as needed, this '
> echo -n 'new configuration. After doing so, you should be able to '
> echo -n 'compile out-of-tree modules, but they will not be usable until '
> echo 'you boot into the newly configured kernel.'
> exit 1
> fi
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-10-24 3:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-22 15:25 [gentoo-user] asterisk zaptel-1.2.9.1 error Kitti Jaisong
2006-10-22 16:47 ` Régis Décamps
2006-10-22 19:08 ` Boyd Stephen Smith Jr.
2006-10-24 3:04 ` kitti jaisong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox