红联Linux门户
Linux帮助

fedora 7 下安装网卡驱动出错,急!

发布时间:2008-06-14 13:52:45来源:红联作者:man_and_dream
公司机子上新装了fedaro 7 (所有的软件包我都选择了,我恨肯定,包特别是那些开发包和库),机子上有两块网卡。另一块是intel的,不识别,我安装驱动程式。
最后make install的时候,出现以下错误:
Makefile:73: *** Linux kernel source not found in any of these locations:
Makefile:74:
Makefile:75: *** Install the appropriate kernel development package, e.g.
Makefile:76: *** kernel-devel, for building kernel modules and try again. Stop.

请问什么原因啊?还提示要找不到内核程序阿,还提示安装其他包啊?我全部装了,一个一个校验,生怕漏了?各位兄台,给个意见啥,我什么包没装?也好网上下一个。急死了。加班都没搞定。虽搞定了我再追加分。

附makefile文件(出错相关的部分):
KSP := /lib/modules/$(BUILD_KERNEL)/build \
/lib/modules/$(BUILD_KERNEL)/source \
/usr/src/linux-$(BUILD_KERNEL) \
/usr/src/linux-$($(BUILD_KERNEL) | sed 's/-.*//') \
/usr/src/kernel-headers-$(BUILD_KERNEL) \
/usr/src/kernel-source-$(BUILD_KERNEL) \
/usr/src/linux-$($(BUILD_KERNEL) | sed 's/\([0-9]*\.[0-9]*\)\..*/\1/') \
/usr/src/linux

# prune the list down to only values that exist
# and have an include/linux sub-directory
test_dir = $(shell [ -e $(dir)/include/linux ] && echo $(dir))
KSP := $(foreach dir, $(KSP), $(test_dir))

# we will use this first valid entry in the search path
ifeq (,$(KSRC))
KSRC := $(firstword $(KSP))
endif

ifeq (,$(KSRC))
$(warning *** Linux kernel source not found in any of these locations:)
$(warning $(KSP))
$(warning *** Install the appropriate kernel development package, e.g.)
$(error kernel-devel, for building kernel modules and try again)
else
文章评论

共有 1 条评论

  1. mizong1 于 2008-12-31 15:29:08发表:

    论坛的人都死光了