LinuxForum.Fans
Тема

Установка NVIDIA

Автор: Tlen 41 сообщений 9842 просмотров
#76934
Fevr написал:
с сообщением об ошибки связанной с ядром

и как она выглядит? что-то вроде "установите хедеры ядра"?

#76936

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Sep 8 05:11:27 2010
installer version: 256.44

Показать
option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
no X server check : false
no cc version check : false
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : [url]ftp://download.nvidia.com[/url]
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 256.44.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> The CC version check failed:

The compiler used to compile the kernel (gcc 4.3) does not exactly match the
current compiler (gcc 4.4). The Linux 2.6 kernel module loader rejects kern
el modules built with a version of gcc that does not exactly match that of t
he compiler used to build the running kernel.

If you know what you are doing and want to ignore the gcc version check, sel
ect "No" to continue installation. Otherwise, select "Yes" to abort install
ation, set the CC environment variable to the name of the compiler used to c
ompile your kernel, and restart installation. Abort now? (Answer: Yes)
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

также воспользовался советом из похожей темы и установил module-assistant после чего сделал m-a prepar (доставилось пакетов на 25 мб)



если во время инстала выбираю продолжить, то окончания лога такое

The compiler used to compile the kernel (gcc 4.3) does not exactly match the
current compiler (gcc 4.4). The Linux 2.6 kernel module loader rejects kern
el modules built with a version of gcc that does not exactly match that of t
he compiler used to build the running kernel.

If you know what you are doing and want to ignore the gcc version check, sel
ect "No" to continue installation. Otherwise, select "Yes" to abort install
ation, set the CC environment variable to the name of the compiler used to c
ompile your kernel, and restart installation. Abort now? (Answer: No)
ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
installed. If you know the correct kernel source files are installed,
you may specify the kernel source path with the '--kernel-source-path'
command line option.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.


/usr/src/

#77055

Насколько я понял, ядро у вас стоит 2.6.35 а хедеры 2.6.32.
Если я не правильно понял и хедеры стоят нужные, попробуй в ссылку сделать в /usr/src

text

ln -s /usr/src/linux-headers-2.6.32-5-686 /usr/src/linux
#77066
unk написал:
Насколько я понял, ядро у вас стоит 2.6.35 а хедеры 2.6.32.
Если я не правильно понял и хедеры стоят нужные, попробуй в ссылку сделать в /usr/src
text

ln -s /usr/src/linux-headers-2.6.32-5-686 /usr/src/linux

не помогло

#77071


Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
installed. If you know the correct kernel source files are installed,
you may specify the kernel source path with the '--kernel-source-path'
command line option.

Установщик не может найти хедеры ядра. Почему хз.

#77076

Во-первых, какое ядро?
[console]uname -a[/console]
Во-вторых,
[console]ls -l /usr/src[/console]

#77079
durc написал:
Во-первых, какое ядро?
[console]uname -a[/console]

Linux debian 2.6.32-bpo.4-686 #1 SMP Mon Apr 12 16:20:13 UTC 2010 i686 GNU/Linux
....странно - ночью было обновление и там проскочил 2.6.35...видимо я что то не так понял, раз 2.6.32, и в загрузчике

Во-вторых,
[console]ls -l /usr/src[/console]

ls -l /usr/src
итого 6215
drwxr-xr-x 4 root root 168 Авг 27 23:41 gcc-4.4
lrwxrwxrwx 1 root src 35 Сен 8 13:39 linux -> /usr/src/linux-headers-2.6.32-5-686
drwxr-xr-x 4 root root 232 Сен 8 08:52 linux-headers-2.6.32-5-686
drwxr-xr-x 4 root root 168 Сен 8 08:52 linux-headers-2.6.32-5-common
drwxr-xr-x 4 root root 168 Авг 28 00:29 linux-headers-2.6.32-bpo.4-common-vserver
lrwxrwxrwx 1 root root 26 Авг 28 00:27 linux-kbuild-2.6.32 -> ../lib/linux-kbuild-2.6.32
drwxr-xr-x 2 root root 1072 Сен 8 08:52 nvidia-195.36.24
-rw-r--r-- 1 root root 6354770 Июн 14 06:52 nvidia-kernel.tar.bz2

#77082

Во-первых, зачем столько хедеров?
Во-вторых, у Вас ссылка /usr/src/linux показывает не на те хедеры что нужны.
И в-третьих, вот эти хедеры точно ли соответствуют версии ядра?
В названии ядра я ничего не вижу насчёт common-vserver.
Если всё таки соответствуют, то
[console]ln -sf /usr/src/linux-headers-2.6.32-bpo.4-common-vserver /usr/src/linux[/console]

Ну а если не соответствуют, то устанавливайте те что и правда нужны и
выполняйте команду
[console]ln -sf /usr/src/название_хедеров /usr/src/linux[/console]

#77089

честно говоря с хедерами и ядром я не наладил дружбу... почему их там так много - все ставил автоматом опираясь на другие темы с подобной ситуацией. До этого момента, когда обновление системы происходило с различных левых источников, такой ситуации с установкой драйвера не возникало.

#77090

Чтобы не париться откройте synaptic
смотрите название ядра, название хедеров должно точно соответствовать названию ядра. Все остальные удаляете за ненадобностью и выполняете команду
[console]ln -sf /usr/src/название_хедеров /usr/src/linux[/console]
После этого ставьте драйвера. Всё установится нормально.

#77094

Fevr,
меня вот ещё одна вещь удивляет.
Ядро у Вас стоит из бэкпортс, а среди хедеров я вижу версию тестового ядра.

#77095

в /usr/src в итоге должно остаться только linux-headers-2.6.32-bpo.4-common-vserver ?

#77097
Fevr написал:
в /usr/src в итоге должно остаться только linux-headers-2.6.32-bpo.4-common-vserver ?

Если Ваше ядро называется linux-image-2.6.32-bpo.4-common-vserver, то да.
Но не забудьте создать ссылку.
[console]ln -sf /usr/src/название_хедеров /usr/src/linux[/console]

#77100
durc написал:
[quote=Fevr]в /usr/src в итоге должно остаться только linux-headers-2.6.32-bpo.4-common-vserver ?

Если Ваше ядро называется linux-image-2.6.32-bpo.4-common-vserver, то да.
Но не забудьте создать ссылку.
[console]ln -sf /usr/src/название_хедеров /usr/src/linux[/console][/quote]


на uname -a показывает Linux debian 2.6.32-bpo.4-686 это совершенно иное?

#77102
Fevr написал:
на uname -a показывает Linux debian 2.6.32-bpo.4-686 это совершенно иное?

Думаю да.
Попробуйте так
[console]apt-cache show linux-headers-2.6.32-bpo.4-686[/console]
Если покажет что не установлен, установите.

#77103

N: Не удалось найти пакет linux-headers-2.6.32-bpo.4-686


так, значит вот чего на самом деле не хватает?

#77105
Fevr написал:
N: Не удалось найти пакет linux-headers-2.6.32-bpo.4-686
так, значит вот чего на самом деле не хватает?

Не совсем.
Покажите вывод
[console]apt-cache search linux-headers[/console]

#77108

...помоему я случайно все хедеры поставил...

Показать
inux-headers-2.6.26-1-486 - Header files for Linux 2.6.26-1-486
linux-headers-2.6.26-1-686 - Header files for Linux 2.6.26-1-686
linux-headers-2.6.26-1-686-bigmem - Header files for Linux 2.6.26-1-686-bigmem
linux-headers-2.6.26-1-all - All header files for Linux 2.6.26
linux-headers-2.6.26-1-all-i386 - All header files for Linux 2.6.26
linux-headers-2.6.26-1-amd64 - Header files for Linux 2.6.26-1-amd64
linux-headers-2.6.26-1-common - Common header files for Linux 2.6.26-1
linux-headers-2.6.26-1-common-openvz - Common header files for Linux 2.6.26-1-openvz
linux-headers-2.6.26-1-common-vserver - Common header files for Linux 2.6.26-1-vserver
linux-headers-2.6.26-1-common-xen - Common header files for Linux 2.6.26-1-xen
linux-headers-2.6.26-1-openvz-686 - Header files for Linux 2.6.26-1-openvz-686
linux-headers-2.6.26-1-vserver-686 - Header files for Linux 2.6.26-1-vserver-686
linux-headers-2.6.26-1-vserver-686-bigmem - Header files for Linux 2.6.26-1-vserver-686-bigmem
linux-headers-2.6.26-1-xen-686 - Header files for Linux 2.6.26-1-xen-686
linux-headers-2.6.26-2-486 - Header files for Linux 2.6.26-2-486
linux-headers-2.6.26-2-686 - Header files for Linux 2.6.26-2-686
linux-headers-2.6.26-2-686-bigmem - Header files for Linux 2.6.26-2-686-bigmem
linux-headers-2.6.26-2-all - All header files for Linux 2.6.26
linux-headers-2.6.26-2-all-i386 - All header files for Linux 2.6.26
linux-headers-2.6.26-2-amd64 - Header files for Linux 2.6.26-2-amd64
linux-headers-2.6.26-2-common - Common header files for Linux 2.6.26-2
linux-headers-2.6.26-2-common-openvz - Common header files for Linux 2.6.26-2-openvz
linux-headers-2.6.26-2-common-vserver - Common header files for Linux 2.6.26-2-vserver
linux-headers-2.6.26-2-common-xen - Common header files for Linux 2.6.26-2-xen
linux-headers-2.6.26-2-openvz-686 - Header files for Linux 2.6.26-2-openvz-686
linux-headers-2.6.26-2-vserver-686 - Header files for Linux 2.6.26-2-vserver-686
linux-headers-2.6.26-2-vserver-686-bigmem - Header files for Linux 2.6.26-2-vserver-686-bigmem
linux-headers-2.6.26-2-xen-686 - Header files for Linux 2.6.26-2-xen-686
linux-headers-2.6.32-5-486 - Header files for Linux 2.6.32-5-486
linux-headers-2.6.32-5-686-bigmem - Header files for Linux 2.6.32-5-686-bigmem
linux-headers-2.6.32-5-686 - Header files for Linux 2.6.32-5-686
linux-headers-2.6.32-5-all-i386 - All header files for Linux 2.6.32
linux-headers-2.6.32-5-all - All header files for Linux 2.6.32
linux-headers-2.6.32-5-amd64 - Header files for Linux 2.6.32-5-amd64
linux-headers-2.6.32-5-common-openvz - Common header files for Linux 2.6.32-5-openvz
linux-headers-2.6.32-5-common-vserver - Common header files for Linux 2.6.32-5-vserver
linux-headers-2.6.32-5-common-xen - Common header files for Linux 2.6.32-5-xen
linux-headers-2.6.32-5-common - Common header files for Linux 2.6.32-5
linux-headers-2.6.32-5-openvz-686 - Header files for Linux 2.6.32-5-openvz-686
linux-headers-2.6.32-5-vserver-686-bigmem - Header files for Linux 2.6.32-5-vserver-686-bigmem
linux-headers-2.6.32-5-vserver-686 - Header files for Linux 2.6.32-5-vserver-686
linux-headers-2.6.32-5-xen-686 - Header files for Linux 2.6.32-5-xen-686
linux-headers-2.6-486 - Header files for Linux 2.6-486 (meta-package)
linux-headers-2.6-686-bigmem - Header files for Linux 2.6-686-bigmem (meta-package)
linux-headers-2.6-686 - Header files for Linux 2.6-686 (meta-package)
linux-headers-2.6-amd64 - Header files for Linux 2.6-amd64 (meta-package)
linux-headers-2.6-openvz-686 - Header files for Linux 2.6-openvz-686 (meta-package)
linux-headers-2.6-vserver-686-bigmem - Header files for Linux 2.6-vserver-686-bigmem (meta-package)
linux-headers-2.6-vserver-686 - Header files for Linux 2.6-vserver-686 (meta-package)
linux-headers-2.6-xen-686 - Header files for Linux 2.6-xen-686 (meta-package)
linux-headers-2.6.32-bpo.4-486 - Header files for Linux 2.6.32-bpo.4-486
linux-headers-2.6.32-bpo.4-686-bigmem - Header files for Linux 2.6.32-bpo.4-686-bigmem
linux-headers-2.6.32-bpo.4-686 - Header files for Linux 2.6.32-bpo.4-686
linux-headers-2.6.32-bpo.4-all-i386 - All header files for Linux 2.6.32
linux-headers-2.6.32-bpo.4-all - All header files for Linux 2.6.32
linux-headers-2.6.32-bpo.4-amd64 - Header files for Linux 2.6.32-bpo.4-amd64
linux-headers-2.6.32-bpo.4-common-openvz - Common header files for Linux 2.6.32-bpo.4-openvz
linux-headers-2.6.32-bpo.4-common-vserver - Common header files for Linux 2.6.32-bpo.4-vserver
linux-headers-2.6.32-bpo.4-common-xen - Common header files for Linux 2.6.32-bpo.4-xen
linux-headers-2.6.32-bpo.4-common - Common header files for Linux 2.6.32-bpo.4
linux-headers-2.6.32-bpo.4-openvz-686 - Header files for Linux 2.6.32-bpo.4-openvz-686
linux-headers-2.6.32-bpo.4-vserver-686-bigmem - Header files for Linux 2.6.32-bpo.4-vserver-686-bigmem
linux-headers-2.6.32-bpo.4-vserver-686 - Header files for Linux 2.6.32-bpo.4-vserver-686
linux-headers-2.6.32-bpo.4-xen-686 - Header files for Linux 2.6.32-bpo.4-xen-686
linux-headers-2.6.32-bpo.5-486 - Header files for Linux 2.6.32-bpo.5-486
linux-headers-2.6.32-bpo.5-686-bigmem - Header files for Linux 2.6.32-bpo.5-686-bigmem
linux-headers-2.6.32-bpo.5-686 - Header files for Linux 2.6.32-bpo.5-686
linux-headers-2.6.32-bpo.5-all-i386 - All header files for Linux 2.6.32
linux-headers-2.6.32-bpo.5-all - All header files for Linux 2.6.32
linux-headers-2.6.32-bpo.5-amd64 - Header files for Linux 2.6.32-bpo.5-amd64
linux-headers-2.6.32-bpo.5-common-openvz - Common header files for Linux 2.6.32-bpo.5-openvz
linux-headers-2.6.32-bpo.5-common-vserver - Common header files for Linux 2.6.32-bpo.5-vserver
linux-headers-2.6.32-bpo.5-common-xen - Common header files for Linux 2.6.32-bpo.5-xen
linux-headers-2.6.32-bpo.5-common - Common header files for Linux 2.6.32-bpo.5
linux-headers-2.6.32-bpo.5-openvz-686 - Header files for Linux 2.6.32-bpo.5-openvz-686
linux-headers-2.6.32-bpo.5-vserver-686-bigmem - Header files for Linux 2.6.32-bpo.5-vserver-686-bigmem
linux-headers-2.6.32-bpo.5-vserver-686 - Header files for Linux 2.6.32-bpo.5-vserver-686
linux-headers-2.6.32-bpo.5-xen-686 - Header files for Linux 2.6.32-bpo.5-xen-686

не верно задал параметр - сократил до linux-headers-2.6.32-bpo при запросе....видимо надо удалять

#77110

apt-cache только показывает доступные пакеты, а не устанавливает.

text
linux-headers-2.6.32-bpo.4-686

вот Ваши хедеры.
Ставьте их и делайте на них ссылку.

#77113

Отлично! все завелось! драйвер успешно поставился. Большое спасибо за помощь в решении вопроса!

Войдите или зарегистрируйтесь, чтобы ответить.