我三天前才开始接触linux,装了FC6(台式机)和UBUNTU 6.10(笔记本)两套linux系统。感觉UBUNTU界面更漂亮,而且直接支持windows的NTFS格式,这一点比FC方便多了。
但我在UBUNTU装无线网卡驱动时却一直不顺利。搜索了论坛以及baidu,主要有madwifi和ndiswrapper两种解决方案,我两种都试过了,都没装上,特来想各位大虾求救。
[madwifi方案]
以下是madwifi-0.9.2执行make之后的错误提示:
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.17-10-generic/build SUBDIRS=/tmp/madwifi-0.9.2 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.17-10-generic'
CC [M] /tmp/madwifi-0.9.2/ath/ah_osdep.o
HOSTCC /tmp/madwifi-0.9.2/ath/uudecode
/tmp/madwifi-0.9.2/ath/uudecode.c:26:19: error: stdio.h: No such file or directory
/tmp/madwifi-0.9.2/ath/uudecode.c:27:19: error: errno.h: No such file or directory
/tmp/madwifi-0.9.2/ath/uudecode.c:28:20: error: getopt.h: No such file or directory
/tmp/madwifi-0.9.2/ath/uudecode.c:29:20: error: string.h: No such file or directory
/tmp/madwifi-0.9.2/ath/uudecode.c:30:20: error: stdlib.h: No such file or directory
/tmp/madwifi-0.9.2/ath/uudecode.c:32:23: error: sys/fcntl.h: No such file or directory
/tmp/madwifi-0.9.2/ath/uudecode.c:33:22: error: sys/stat.h: No such file or directory
/tmp/madwifi-0.9.2/ath/uudecode.c: In function 'uudecode_usage':
/tmp/madwifi-0.9.2/ath/uudecode.c:37: warning: implicit declaration of function 'printf'
/tmp/madwifi-0.9.2/ath/uudecode.c:37: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/madwifi-0.9.2/ath/uudecode.c: At top level:
/tmp/madwifi-0.9.2/ath/uudecode.c:40: error: expected ')' before '*' token
/tmp/madwifi-0.9.2/ath/uudecode.c:70: error: expected ')' before '*' token
/tmp/madwifi-0.9.2/ath/uudecode.c: In function 'main':
/tmp/madwifi-0.9.2/ath/uudecode.c:121: error: 'FILE' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:121: error: (Each undeclared identifier is reported only once
/tmp/madwifi-0.9.2/ath/uudecode.c:121: error: for each function it appears in.)
/tmp/madwifi-0.9.2/ath/uudecode.c:121: error: 'src_stream' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:122: error: 'dst_stream' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:122: error: 'NULL' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:130: warning: implicit declaration of function 'getopt'
/tmp/madwifi-0.9.2/ath/uudecode.c:134: error: 'optarg' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:138: warning: implicit declaration of function 'exit'
/tmp/madwifi-0.9.2/ath/uudecode.c:138: warning: incompatible implicit declaration of built-in function 'exit'
/tmp/madwifi-0.9.2/ath/uudecode.c:141: error: 'optind' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:142: error: 'stdin' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:144: warning: implicit declaration of function 'fopen'
/tmp/madwifi-0.9.2/ath/uudecode.c:146: warning: implicit declaration of function 'fprintf'
/tmp/madwifi-0.9.2/ath/uudecode.c:146: warning: incompatible implicit declaration of built-in function 'fprintf'
/tmp/madwifi-0.9.2/ath/uudecode.c:146: error: 'stderr' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:147: warning: implicit declaration of function 'strerror'
/tmp/madwifi-0.9.2/ath/uudecode.c:147: error: 'errno' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:147: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
/tmp/madwifi-0.9.2/ath/uudecode.c:148: warning: incompatible implicit declaration of built-in function 'exit'
/tmp/madwifi-0.9.2/ath/uudecode.c:152: warning: incompatible implicit declaration of built-in function 'exit'
/tmp/madwifi-0.9.2/ath/uudecode.c:156: warning: implicit declaration of function 'get_line_from_file'
/tmp/madwifi-0.9.2/ath/uudecode.c:156: warning: assignment makes pointer from integer without a cast
/tmp/madwifi-0.9.2/ath/uudecode.c:157: warning: implicit declaration of function 'strncmp'
/tmp/madwifi-0.9.2/ath/uudecode.c:164: warning: incompatible implicit declaration of built-in function 'fprintf'
/tmp/madwifi-0.9.2/ath/uudecode.c:165: warning: incompatible implicit declaration of built-in function 'exit'
/tmp/madwifi-0.9.2/ath/uudecode.c:168: warning: implicit declaration of function 'strtoul'
/tmp/madwifi-0.9.2/ath/uudecode.c:170: warning: implicit declaration of function 'strchr'
/tmp/madwifi-0.9.2/ath/uudecode.c:170: warning: incompatible implicit declaration of built-in function 'strchr'
/tmp/madwifi-0.9.2/ath/uudecode.c:172: warning: incompatible implicit declaration of built-in function 'fprintf'
/tmp/madwifi-0.9.2/ath/uudecode.c:173: warning: incompatible implicit declaration of built-in function 'exit'
/tmp/madwifi-0.9.2/ath/uudecode.c:178: warning: implicit declaration of function 'strcmp'
/tmp/madwifi-0.9.2/ath/uudecode.c:179: error: 'stdout' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:182: error: 'O_WRONLY' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:182: error: 'O_CREAT' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:182: error: 'O_TRUNC' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:186: error: 'O_EXCL' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:188: warning: implicit declaration of function 'open'
/tmp/madwifi-0.9.2/ath/uudecode.c:189: error: 'S_IRWXU' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:189: error: 'S_IRWXG' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:189: error: 'S_IRWXO' undeclared (first use in this function)
/tmp/madwifi-0.9.2/ath/uudecode.c:191: warning: implicit declaration of function 'fdopen'
/tmp/madwifi-0.9.2/ath/uudecode.c:193: warning: incompatible implicit declaration of built-in function 'fprintf'
/tmp/madwifi-0.9.2/ath/uudecode.c:194: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
/tmp/madwifi-0.9.2/ath/uudecode.c:195: warning: incompatible implicit declaration of built-in function 'exit'
/tmp/madwifi-0.9.2/ath/uudecode.c:199: warning: implicit declaration of function 'read_stduu'
/tmp/madwifi-0.9.2/ath/uudecode.c:201: warning: implicit declaration of function 'fclose'
make[3]: *** [/tmp/madwifi-0.9.2/ath/uudecode] Error 1
make[2]: *** [/tmp/madwifi-0.9.2/ath] Error 2
make[1]: *** [_module_/tmp/madwifi-0.9.2] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.17-10-generic'
make: *** [modules] 错误 2
[ndiswrapper方案]
ndiswrapper -i 11gAdapter.inf显示成功,但modprobe ndiswrapper却显示:
root@ubuntu:/tmp/Driver# ndiswrapper -l
Installed drivers:
11gadapter driver installed, hardware present
root@ubuntu:/tmp/Driver# modprobe ndiswrapper
FATAL: Could not open '/lib/modules/2.6.17-10-generic/misc/ndiswrapper.ko': No such file or directory
请各位帮我分析一下,到底是哪里出问题了?多谢多谢!
[超级菜菜鸟求助]UBUNTU 6.10下装tp-link 510G无线网卡驱动的问题
-
- 帖子: 3
- 注册时间: 2006-11-08 16:07
-
- 帖子: 4
- 注册时间: 2006-11-02 23:14