два вопроса

Добрый день.У меня возникло два вопроса.После переустановки gentoo я никак не могу поставить пакеты virtualbox и nvidia-drivers.Выдается следующее:
localhost z # emerge virtualbox
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 11) app-emulation/virtualbox-modules-1.5.4 to /
* vbox-kernel-module-src-1.5.4.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking vbox-kernel-module-src-1.5.4.tar.gz ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
*
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

2.
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

6.
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

22
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

-gentoo-r8
/usr/portage/eclass/linux-info.eclass: line 219: [: too many arguments
* These sources have not yet been prepared.
* We cannot build against an unprepared tree.
* To resolve this, please type the following:
*
* # cd /usr/src/linux
* # make oldconfig
* # make modules_prepare
*
* Then please try merging this module again.
*
* ERROR: app-emulation/virtualbox-modules-1.5.4 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* virtualbox-modules-1.5.4.ebuild, line 26: Called linux-mod_pkg_setup
* linux-mod.eclass, line 471: Called check_kernel_built
* linux-info.eclass, line 385: Called die
* The specific snippet of code:
* die "Kernel sources need compiling first"
* The die message:
* Kernel sources need compiling first
*
* 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/app-emulation/virtualbox-modules-1.5.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-1.5.4/temp/die.env'.
*

* Messages for package app-emulation/virtualbox-modules-1.5.4:

* These sources have not yet been prepared.
* We cannot build against an unprepared tree.
* To resolve this, please type the following:
*
* # cd /usr/src/linux
* # make oldconfig
* # make modules_prepare
*
* Then please try merging this module again.
*
* ERROR: app-emulation/virtualbox-modules-1.5.4 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* virtualbox-modules-1.5.4.ebuild, line 26: Called linux-mod_pkg_setup
* linux-mod.eclass, line 471: Called check_kernel_built
* linux-info.eclass, line 385: Called die
* The specific snippet of code:
* die "Kernel sources need compiling first"
* The die message:
* Kernel sources need compiling first
*
* 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/app-emulation/virtualbox-modules-1.5.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-1.5.4/temp/die.env'.

localhost z # emerge nvidia-drivers
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-173.14.09 to /
* NVIDIA-Linux-x86-173.14.09-pkg0.run RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking NVIDIA-Linux-x86-173.14.09-pkg0.run ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
*
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

2.
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

6.
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

22
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

-gentoo-r8
/usr/portage/eclass/linux-info.eclass: line 219: [: too many arguments
* These sources have not yet been prepared.
* We cannot build against an unprepared tree.
* To resolve this, please type the following:
*
* # cd /usr/src/linux
* # make oldconfig
* # make modules_prepare
*
* Then please try merging this module again.
*
* ERROR: x11-drivers/nvidia-drivers-173.14.09 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* nvidia-drivers-173.14.09.ebuild, line 146: Called linux-mod_pkg_setup
* linux-mod.eclass, line 471: Called check_kernel_built
* linux-info.eclass, line 385: Called die
* The specific snippet of code:
* die "Kernel sources need compiling first"
* The die message:
* Kernel sources need compiling first
*
* 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/x11-drivers/nvidia-drivers-173.14.09/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/temp/die.env'.
*

* Messages for package x11-drivers/nvidia-drivers-173.14.09:

* These sources have not yet been prepared.
* We cannot build against an unprepared tree.
* To resolve this, please type the following:
*
* # cd /usr/src/linux
* # make oldconfig
* # make modules_prepare
*
* Then please try merging this module again.
*
* ERROR: x11-drivers/nvidia-drivers-173.14.09 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* nvidia-drivers-173.14.09.ebuild, line 146: Called linux-mod_pkg_setup
* linux-mod.eclass, line 471: Called check_kernel_built
* linux-info.eclass, line 385: Called die
* The specific snippet of code:
* die "Kernel sources need compiling first"
* The die message:
* Kernel sources need compiling first
*
* 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/x11-drivers/nvidia-drivers-173.14.09/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/temp/die.env'.
*
И второй вопрос.При запуске некоторых приложений(в частности Metatrader4) под wine выдается следующая ошибка:

wine ./terminal.exe
fixme:debugstr:CheckRemoteDebuggerPresent (0xffffffff)->(0xbaab69): Stub!
err:seh:setup_exception_record stack overflow 888 bytes in thread 0009 eip 7ef97b57 esp 00230fb8 stack 0x230000-0x231000-0x330000
Я просто никак не пойму где искать ошибки.Я новичек в gentoo. До переустановки все работало нормально.Систему я переустановил по той же системе что и до ӕтого.Единственное, что я выбрал другой stage.До ӕтого был -686, а сейчас х86.Ядро 2.6.25-r6.Большое спасибо

сконфигурируй

сконфигурируй и обнови ядро
без этого никак нельзя : должны быть рабочие исходники ядра

Ясно.Буду

Ясно.Буду пробовать

Первая

Первая проблема вроде бы решилась.Я нашел старый .config.И все заработало.
А вторая проблема так и осталась не решенной.

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".