for 羊 in 佛 旅行 英语 香水 道 清明梦 Linux; do wget http://Matt.BackOZ.info:88 >> $羊; done
yang | 07 七月, 2010 14:37
新装Fedora 13 kernel版本为 kernel.x86_64 0:2.6.33.5-85,在安装VirutalBox之前通过yum安装了kernel-devel 与kernel-headers,谁知道安装VirtualBox时死活通不过,提示如下:
[root@Tao matt]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
查看日志:
[root@Tao matt]# cat /var/log/vbox-install.log
Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop..
找不到kernel包,原来VirutalBox(包括其他与内核有关的)编译是查看/lib/modules/2.6.33.3-85.fc13.x86_64(即版本号)/build,而这个build是一个链接到/usr/src/kernels/2.6.33.5-124.fc13.x86_64(即版本号)的软链接,一看/lib/modules/2.6.33.3-85.fc13.x86_64/build 文件不对,升级kernel。
升级完kernel后须重启计算机,否则现在使用老版本的kernel,链接时到新版本的headers也无法通过,出错如下:
[root@Tao matt]# cat /var/log/vbox-install.log
Makefile:170: *** Error: /usr/src/linux (version 2.6.33.5-124.fc13.x86_64) does not match the current kernel (version 2.6.33.3-85.fc13.x86_64). Stop.
重启后编译即可。
kernel.x86_64 0:2.6.33.5-124
| « | 七月 2010 | » | ||||
|---|---|---|---|---|---|---|
| 一 | 二 | 三 | 四 | 五 | 六 | 日 |
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |