Chinaunix首页 | 论坛 | 博客
  • 博客访问: 130300
  • 博文数量: 32
  • 博客积分: 2547
  • 博客等级: 少校
  • 技术积分: 405
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-15 19:58
文章分类

全部博文(32)

文章存档

2009年(20)

2008年(12)

我的朋友

分类: BSD

2009-02-10 04:24:41

Q. I'm trying to recompile my kernel by tying the following commands:

cd /usr/src/sys/i386/conf
cp GENERIC NEWKEN
vi NEWKEN
cd /usr/src
make buildkernel KERNCONF=NEWKEN


But I'm bumped with an error that read as follows:
make: don't know how to make buildkernel. Stop Error and Solution

How do I fix this error?

A. This is well known problem. You need an up to date and complete copy of the FreeBSD source including kernel at /usr/src and /usr/src/sys. To grab latest FreeBSD kernel source use or sysinstall command.
# sysinstall
Select > Configure > Distributions > Src > Select Base, Sys and all other required source code > Ok > Ok > Select Internet > FTP Main site and install the source code.

Once installed type the following command to compile the kernel:

# cd /usr/src
# make buildkernel KERNCONF=NEWKEN
# make installkernel KERNCONF=NEWKEN
# reboot

阅读(1900) | 评论(0) | 转发(0) |
0

上一篇:Windows 7 体验中...

下一篇:net-snmp启动失败

给主人留下些什么吧!~~