這是我在這邊發的第一篇文章。如果有任何缺失的話,還望請前輩指出來,謝謝。
我的主機板是asus P4P800,我安裝的debian是3.1r0a,kernel版本是2.6.8。我有安裝kernel-headers、alsa-source、alsa-base。我在/usr/src/modules/alsa-driver下輸入export KSRC=/usr/src/linux;export KVERS=`uname -r`;export KDREV=`uname -r`
再執行debian/rules kdist image
結果出現以下訊息:
/usr/bin/make -f debian/rules binary-modules
make[1]: Entering directory `/usr/src/modules/alsa-driver'
CC="gcc" ./configure --prefix=/usr --with-kernel=/usr/src/linux --with-build=/usr/src/linux --with-moddir=/lib/modules/2.6.8-2-686/updates/alsa --with-sequencer=yes --with-isapnp=yes --with-cards="all"
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /usr/src/modules/alsa-driver
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for directory with kernel build... /usr/src/linux
checking for kernel version... The file /usr/src/linux/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /lib/modules/2.6.8-2-686/source).
make[1]: *** [configure-stamp] Error 1
make[1]: Leaving directory `/usr/src/modules/alsa-driver'
make: *** [kdist] Error 2
以下是執行discover所顯示出來的訊息
unknown unknown
unknown unknown
unknown unknown
Intel Corp. 82865G/PE/P DRAM Controller/Host-Hub Interface
Intel Corp. 82865G/PE/P PCI to AGP Controller
Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1
Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2
Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3
Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4
Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller
Intel Corp. 82801 PCI Bridge
Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge
Intel Corp. 82801EB/ER (ICH5/ICH5R) IDE Controller
Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller
Intel Corp. 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller
nVidia Corporation NV18 [GeForce4 MX 440 AGP 8x]
3Com Corporation 3c940 10/100/1000Base-T [Marvell]
unknown unknown
unknown unknown
unknown unknown
unknown unknown
unknown unknown
請問一下我該怎麼做才能通過編譯,謝謝。