这是我在linux的安装过程,看看是错在哪里了呢?
[root@localhost Intel-v92ham-448-r72]# make clean
cd coredrv; make clean
make[1]: Entering directory `/mnt/g/linux/linux/linux/Intel-v92ham-448-r72/coredrv'
rm -f *.o *~ core
make[1]: Leaving directory `/mnt/g/linux/linux/linux/Intel-v92ham-448-r72/coredrv'
cd serialdrv; make clean
make[1]: Entering directory `/mnt/g/linux/linux/linux/Intel-v92ham-448-r72/serialdrv'
rm -f *.o *~ core
make[1]: Leaving directory `/mnt/g/linux/linux/linux/Intel-v92ham-448-r72/serialdrv'
rm -f *.o
rm -f *.o
[root@localhost Intel-v92ham-448-r72]# make ham
if [ -a /boot/vmlinuz.version.h ]; then \
cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h; fi
cd coredrv; make \
"STN_DEF=-DTARGET_HAM -DDSP_CODE_800_SERIES -DTARGET_LINUX -DLINUX" \
ham;
make[1]: Entering directory `/mnt/g/linux/linux/linux/Intel-v92ham-448-r72/coredrv'
cc -DTARGET_HAM -DDSP_CODE_800_SERIES -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc -c -o coredrv.o coredrv.c
In file included from /usr/include/linux/timex.h:152,
from /usr/include/linux/sched.h:14,
from /usr/include/linux/delay.h:12,
from coredrv.c:34:
/usr/include/asm/timex.h:10:21: asm/msr.h: No such file or directory
In file included from coredrv.c:34:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
In file included from /usr/include/linux/module.h:20,
from coredrv.c:37:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
make[1]: *** [coredrv.o] Error 1
make[1]: Leaving directory `/mnt/g/linux/linux/linux/Intel-v92ham-448-r72/coredrv'
make: *** [ham] Error 2
[root@localhost Intel-v92ham-448-r72]# make install
bash haminst
running kernel 2.4.18-3
installing hamregistry, used for persistant storage
installing ham module
install: cannot stat `ham.o': No such file or directory
installing hamcore module
install: cannot stat `hamcore.o': No such file or directory
redhat hamboot rc2.d and rc3.d scripts
starting module and utilities
error loading hamcore
done |