From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GcCha-0008Fv-8N for garchives@archives.gentoo.org; Tue, 24 Oct 2006 03:11:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9O384Vq023904; Tue, 24 Oct 2006 03:08:04 GMT Received: from mailgw.ttt.co.th (mailgw.ttt.co.th [210.1.33.232]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9O34Qg5015476 for ; Tue, 24 Oct 2006 03:04:27 GMT Received: from [10.10.91.158] ([10.10.91.158]) by mailgw.ttt.co.th with Microsoft SMTPSVC(6.0.3790.1830); Tue, 24 Oct 2006 10:04:22 +0700 Message-ID: <453D82B1.6040505@ttt.co.th> Date: Tue, 24 Oct 2006 10:04:17 +0700 From: kitti jaisong User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] asterisk zaptel-1.2.9.1 error References: <281497B9488F3343BEF0C012174870996A3AB6@MAIL01.ttt.co.th> <42c4f5b20610220947w7aadb95fw762e3b0b1fcb857@mail.gmail.com> <200610221408.34650.bss03@volumehost.net> In-Reply-To: <200610221408.34650.bss03@volumehost.net> Content-Type: text/plain; charset=UTF-8; format=flowed X-OriginalArrivalTime: 24 Oct 2006 03:04:22.0357 (UTC) FILETIME=[1ADCF850:01C6F719] Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k9O384WK023904 X-Archives-Salt: 735664c5-c8f4-4052-998a-d2d630dad2e6 X-Archives-Hash: bb7ea73ee8901364d30ca6a93c598eae 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=C3=A9gis D=C3=A9camps" wrote=20 > about 'Re: [gentoo-user] asterisk zaptel-1.2.9.1 error': > =20 >>> * 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. >>> =20 >> 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- /usr/src/linux/.config >> =20 > > Try the script below instead, it might not fix everything, but it's les= s=20 > hit-and-miss than manually searching for a configuration backup that yo= u=20 > 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)" =3D=3D "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 agre= e.' > 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, thi= s ' > 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 unt= il ' > echo 'you boot into the newly configured kernel.' > exit 1 > fi > > =20 --=20 gentoo-user@gentoo.org mailing list