LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1109|回复: 8

安装网卡驱动出现问题!!!

[复制链接]
发表于 2007-7-5 16:31:21 | 显示全部楼层 |阅读模式
系统:Fedora 7
我的网卡是DFI 975X集成的
RTL8111B/RTL8168B/ 驱动是最新的:
r8168-8.001.0

这个是安装说明文件:
<Requirements>

    - kernel source tree (supported Linux kernel 2.6.x)
    - compiler/binutils for kernel compilation

<Quick install with proper kernel settings>

    Unpack the tarball :
        # tar vjxf r8168-8.aaa.bb.tar.bz2

    Change to the directory:
        # cd r8168-8.aaa.bb

    If you are running the target kernel, then you should be able to do :

        # make clean modules    (as root or with sudo)
        # make install
        # depmod -a
        # insmod ./src/r8168.ko

这个是命令行安装:
[root@localhost ~]# cd r8
[root@localhost r8]# make clean modules
make -C src/ clean
make[1]: Entering directory `/root/r8/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions
make[1]: Leaving directory `/root/r8/src'
make -C src/ modules
make[1]: Entering directory `/root/r8/src'
make -C /lib/modules/2.6.18-8.el5xen/build SUBDIRS=/root/r8/src modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.18-8.el5xen/build: 没有那个文件或目录。 停止。
make: Leaving an unknown directory
make[1]: *** [modules] 错误 2
make[1]: Leaving directory `/root/r8/src'
make: *** [modules] 错误 2
[root@localhost r8]# make install
make -C src/ install
make[1]: Entering directory `/root/r8/src'
install -m 644 -c r8168.ko /lib/modules/2.6.18-8.el5xen/kernel/drivers/net/
install: 无法 stat “r8168.ko”: 没有那个文件或目录
make[1]: *** [install] 错误 1
make[1]: Leaving directory `/root/r8/src'
make: *** [install] 错误 2
[root@localhost r8]#
 楼主| 发表于 2007-7-6 08:24:07 | 显示全部楼层
难道没人知道?!
回复 支持 反对

使用道具 举报

发表于 2007-7-6 10:12:08 | 显示全部楼层
你可以用 freshrpms 的包,不用自己编绎原始码…
  1. # rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/7/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm
  2. # yum install dkms-r1000
复制代码
这个 dkms-r1000 适用於 RTL8111/8168B 网卡
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-6 15:32:33 | 显示全部楼层
还是有问题啊:
[root@localhost ~]# rpm -ivh http://ftp.freshrpms.net/pub/fre ... 1.1-1.fc.noarch.rpm
Retrieving http://ftp.freshrpms.net/pub/fre ... 1.1-1.fc.noarch.rpm
warning: /var/tmp/rpm-xfer.3evZHL: Header V3 DSA signature: NOKEY, key ID e42d547b
Preparing...                ########################################### [100%]
   1:freshrpms-release      ########################################### [100%]
[root@localhost ~]# yum install dkms-r1000
Loading "installonlyn" plugin
Existing lock /var/run/yum.pid: another copy is running. Aborting.

[root@localhost ~]# yum install dkms-r1000
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
http://ayo.uk3.freshrpms.net/fed ... epodata/repomd.xml: [Errno 14] HTTP Error 502: Proxy Error
Trying other mirror.
freshrpms                 100% |=========================|  951 B    00:00     
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  61 kB    00:09     
freshrpms : ################################################## 165/165
Added 165 new packages, deleted 0 old in 0.41 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for dkms-r1000 to pack into transaction set.
dkms-r1000-1.05-1.noarch. 100% |=========================| 3.4 kB    00:02     
---> Package dkms-r1000.noarch 0:1.05-1 set to be updated
--> Running transaction check
--> Processing Dependency: dkms for package: dkms-r1000
--> Finished Dependency Resolution
Error: Missing Dependency: dkms is needed by package dkms-r1000
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-6 15:52:09 | 显示全部楼层
还有,这个FTP主要提供的是什么啊?
回复 支持 反对

使用道具 举报

发表于 2007-7-6 20:27:58 | 显示全部楼层
dkms 是官方提供的包包
先把 GUI 的 YUM 程序关掉
  1. # yum install dkms-r1000
复制代码
freshrpms 是一个额外的 fedora yum 源,提供有版权问题的 linux 程序包
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-6 23:08:48 | 显示全部楼层
现在的问题是这个啊:
Error: Missing Dependency: dkms is needed by package dkms-r1000
我装很多软件包都提示有此错误。
回复 支持 反对

使用道具 举报

发表于 2007-7-6 23:16:13 | 显示全部楼层
Yum 源正常吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-6 23:44:08 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表