Смена ядра и переустановка Vmware
Размещено 2009-04-17
в разделе Администрирование | Метки:
Vmware, Linux
После того как устанавливается новое ядро необхоимо пересобирать новые модули для Vmware, с этим бывает такая проблема
Using compiler "/usr/bin/gcc". Use environment variable CC to override. Your kernel was built with "gcc" version "4.1.3", while you are trying to use "/usr/bin/gcc" version "4.3.3". This configuration is not recommended and VMware Server may crash if you'll continue. Please try to use exactly same compiler as one used for building your kernel. Do you want to go with compiler "/usr/bin/gcc" version "4.3.3" anyway? [no] no
Решается это так
# export CC=/usr/bin/gcc-4.1
Дальше как правило появляется проблема с исходниками ядра:
Using compiler "/usr/bin/gcc-4.1". Use environment variable CC to override. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] The directory of kernel headers (version 2.6.26-1-686) does not match your running kernel (version 2.6.26-2-686). Even if the module were to compile successfully, it would not load into the running kernel. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] ^C
Находим нужные нам исходники, и устанавливаем, после чего правим symlink
# aptitude search linux-header # aptitude install linux-headers-2.6.26-2-686 secrethostname:/usr/src# rm linux secrethostname:/usr/src# ln -s /usr/src/linux-headers-2.6.26-2-686 /usr/src/linux