|
|
发表于 2006-10-20 19:37:05
|
显示全部楼层
Post by YelloWTime
先搜索一下
aptitude search linux-headers
找看应该有一个跟你的内核版本相对应的,安装之
aptitude install linux-headers-2.6.8-2-386 (应该是这样子的,我用的是etch,并且要先安装了gnome,你用的可能是sarge吧,多试几次就知道了) 楼上对头文件有点误解了,其实头文件并不是要对应内核的版本,最重要的是对应编译 glibc 的时候的版本
择自 CLFS 手册,http://cross-lfs.org/view/svn/x86_64/bootable/kernel.html
Warning
Some kernel documentation recommends creating a symlink from /usr/src/linux pointing to the kernel source directory. This is specific to kernels prior to the 2.6 series and must not be created on a CLFS system as it can cause problems for packages you may wish to build once your base CLFS system is complete.
Also, the headers in the system's include directory should always be the ones against which Glibc was compiled (from the Linux-Headers package) and should never be replaced by the kernel headers. 由於 Debian 属於 binary-based,即基於二进包的发行版,自行编译软件的机会相应较少,出错机会也降低了 |
|