当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 超级菜鸟在8.04下装ndiswrapper问题
帖子发表于 : 2009-03-09 23:00 

注册: 2009-03-09 22:47
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
Ubuntu下不能上网,然后新立得管理器里也没这个软件;
下面是我下载的一个1.53版本的Ndiswrapper的编译安装过程;
请大侠指出我问题在哪,谢谢了!
乱码是从Ubuntu到windows转换时出现的,应该不影响理解吧。

yians@yians-laptop:~$ cd ndiswrapper-1.53
yians@yians-laptop:~/ndiswrapper-1.53$ sudo make install
make -C driver install
make[1]: Entering directory `/home/yians/ndiswrapper-1.53/driver'
make -C /usr/src/linux-headers-2.6.24-16-generic M=/home/yians/ndiswrapper-1.53/driver
make[2]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
Building modules, stage 2.
MODPOST 1 modules
make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
echo /lib/modules/2.6.24-16-generic/misc
/lib/modules/2.6.24-16-generic/misc
mkdir -p /lib/modules/2.6.24-16-generic/misc
install -m 0644 ndiswrapper.ko /lib/modules/2.6.24-16-generic/misc
/sbin/depmod -a 2.6.24-16-generic -b /
make[1]: Leaving directory `/home/yians/ndiswrapper-1.53/driver'
make -C utils install
make[1]: Entering directory `/home/yians/ndiswrapper-1.53/utils'
gcc -g -Wall -I../driver -o loadndisdriver loadndisdriver.c
loadndisdriver.c:15:20: error: stdlib.h: No such file or directory
loadndisdriver.c:16:19: error: stdio.h: No such file or directory
loadndisdriver.c:17:19: error: errno.h: No such file or directory
loadndisdriver.c:18:20: error: string.h: No such file or directory
loadndisdriver.c:19:20: error: libgen.h: No such file or directory
loadndisdriver.c:21:22: error: sys/mman.h: No such file or directory
loadndisdriver.c:23:23: error: sys/types.h: No such file or directory
loadndisdriver.c:24:23: error: sys/ioctl.h: No such file or directory
loadndisdriver.c:25:22: error: sys/stat.h: No such file or directory
loadndisdriver.c:26:20: error: unistd.h: No such file or directory
loadndisdriver.c:27:19: error: fcntl.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:11,
from loadndisdriver.c:28:
/usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:122:61: error: limits.h: No such file or directory
loadndisdriver.c:29:19: error: ctype.h: No such file or directory
loadndisdriver.c:30:20: error: dirent.h: No such file or directory
loadndisdriver.c:31:20: error: syslog.h: No such file or directory
loadndisdriver.c:34:25: error: linux/major.h: No such file or directory
loadndisdriver.c:35:25: error: linux/ioctl.h: No such file or directory
In file included from loadndisdriver.c:37:
../driver/loader.h:28: error: expected specifier-qualifier-list before 鈥榮ize_t鈥?loadndisdriver.c: In function 鈥榣oad_file鈥?
loadndisdriver.c:67: error: 鈥榮ize_t鈥?undeclared (first use in this function)
loadndisdriver.c:67: error: (Each undeclared identifier is reported only once
loadndisdriver.c:67: error: for each function it appears in.)
loadndisdriver.c:67: error: expected 鈥?鈥?before 鈥榮ize鈥?loadndisdriver.c:68: error: 鈥楴ULL鈥?undeclared (first use in this function)
loadndisdriver.c:69: error: storage size of 鈥榮tatbuf鈥?isn鈥檛 known
loadndisdriver.c:71: warning: implicit declaration of function 鈥榖asename鈥?loadndisdriver.c:71: warning: initialization makes pointer from integer without a cast
loadndisdriver.c:73: warning: implicit declaration of function 鈥榦pen鈥?loadndisdriver.c:73: error: 鈥極_RDONLY鈥?undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function 鈥榮yslog鈥?loadndisdriver.c:75: error: 鈥楲OG_KERN鈥?undeclared (first use in this function)
loadndisdriver.c:75: error: 鈥楲OG_INFO鈥?undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function 鈥榮trerror鈥?loadndisdriver.c:75: error: 鈥榚rrno鈥?undeclared (first use in this function)
loadndisdriver.c:76: error: 鈥楨INVAL鈥?undeclared (first use in this function)
loadndisdriver.c:79: warning: implicit declaration of function 鈥榝stat鈥?loadndisdriver.c:81: warning: implicit declaration of function 鈥榗lose鈥?loadndisdriver.c:84: error: 鈥榮ize鈥?undeclared (first use in this function)
loadndisdriver.c:86: warning: implicit declaration of function 鈥榤map鈥?loadndisdriver.c:86: error: 鈥楶ROT_READ鈥?undeclared (first use in this function)
loadndisdriver.c:86: error: 鈥楳AP_PRIVATE鈥?undeclared (first use in this function)
loadndisdriver.c:86: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:87: error: 鈥楳AP_FAILED鈥?undeclared (first use in this function)
loadndisdriver.c:93: warning: implicit declaration of function 鈥榮trncpy鈥?loadndisdriver.c:93: warning: incompatible implicit declaration of built-in function 鈥榮trncpy鈥?loadndisdriver.c:95: error: 鈥榮truct load_driver_file鈥?has no member named 鈥榮ize鈥?loadndisdriver.c:96: error: 鈥榮truct load_driver_file鈥?has no member named 鈥榙ata鈥?loadndisdriver.c:69: warning: unused variable 鈥榮tatbuf鈥?loadndisdriver.c: In function 鈥榩arse_setting_line鈥?
loadndisdriver.c:109: warning: implicit declaration of function 鈥榠sspace鈥?loadndisdriver.c:115: warning: implicit declaration of function 鈥榮trchr鈥?loadndisdriver.c:115: warning: incompatible implicit declaration of built-in function 鈥榮trchr鈥?loadndisdriver.c:115: error: 鈥楴ULL鈥?undeclared (first use in this function)
loadndisdriver.c:117: error: 鈥楲OG_KERN鈥?undeclared (first use in this function)
loadndisdriver.c:117: error: 鈥楲OG_INFO鈥?undeclared (first use in this function)
loadndisdriver.c:118: error: 鈥楨INVAL鈥?undeclared (first use in this function)
loadndisdriver.c:138: warning: implicit declaration of function 鈥榮trlen鈥?loadndisdriver.c:138: warning: incompatible implicit declaration of built-in function 鈥榮trlen鈥?loadndisdriver.c: In function 鈥榬ead_conf_file鈥?
loadndisdriver.c:150: error: storage size of 鈥榮tatbuf鈥?isn鈥檛 known
loadndisdriver.c:151: error: 鈥楩ILE鈥?undeclared (first use in this function)
loadndisdriver.c:151: error: 鈥榗onfig鈥?undeclared (first use in this function)
loadndisdriver.c:157: warning: implicit declaration of function 鈥榣stat鈥?loadndisdriver.c:158: error: 鈥楲OG_KERN鈥?undeclared (first use in this function)
loadndisdriver.c:158: error: 鈥楲OG_INFO鈥?undeclared (first use in this function)
loadndisdriver.c:158: error: 鈥榚rrno鈥?undeclared (first use in this function)
loadndisdriver.c:160: error: 鈥楨INVAL鈥?undeclared (first use in this function)
loadndisdriver.c:163: warning: implicit declaration of function 鈥榮scanf鈥?loadndisdriver.c:163: warning: incompatible implicit declaration of built-in function 鈥榮scanf鈥?loadndisdriver.c:178: warning: implicit declaration of function 鈥榝open鈥?loadndisdriver.c:178: error: 鈥楴ULL鈥?undeclared (first use in this function)
loadndisdriver.c:182: warning: implicit declaration of function 鈥榝gets鈥?loadndisdriver.c:194: warning: incompatible implicit declaration of built-in function 鈥榮trncpy鈥?loadndisdriver.c:205: warning: implicit declaration of function 鈥榝close鈥?loadndisdriver.c:150: warning: unused variable 鈥榮tatbuf鈥?loadndisdriver.c: In function 鈥榣oad_bin_file鈥?
loadndisdriver.c:217: error: 鈥楲OG_KERN鈥?undeclared (first use in this function)
loadndisdriver.c:217: error: 鈥楲OG_INFO鈥?undeclared (first use in this function)
loadndisdriver.c:219: warning: implicit declaration of function 鈥榯olower鈥?loadndisdriver.c:221: warning: implicit declaration of function 鈥榗hdir鈥?loadndisdriver.c:222: error: 鈥榚rrno鈥?undeclared (first use in this function)
loadndisdriver.c:224: error: 鈥楨INVAL鈥?undeclared (first use in this function)
loadndisdriver.c:230: warning: incompatible implicit declaration of built-in function 鈥榮trncpy鈥?loadndisdriver.c:232: warning: implicit declaration of function 鈥榠octl鈥?loadndisdriver.c:232: warning: implicit declaration of function 鈥榑IOW鈥?loadndisdriver.c:232: error: expected expression before 鈥榮truct鈥?loadndisdriver.c: In function 鈥榣oad_driver鈥?
loadndisdriver.c:249: error: 鈥楧IR鈥?undeclared (first use in this function)
loadndisdriver.c:249: error: 鈥榙river_dir鈥?undeclared (first use in this function)
loadndisdriver.c:251: error: 鈥楴ULL鈥?undeclared (first use in this function)
loadndisdriver.c:255: error: 鈥楲OG_KERN鈥?undeclared (first use in this function)
loadndisdriver.c:255: error: 鈥楲OG_INFO鈥?undeclared (first use in this function)
loadndisdriver.c:257: error: 鈥榚rrno鈥?undeclared (first use in this function)
loadndisdriver.c:259: error: 鈥楨INVAL鈥?undeclared (first use in this function)
loadndisdriver.c:261: warning: implicit declaration of function 鈥榦pendir鈥?loadndisdriver.c:267: warning: implicit declaration of function 鈥榤alloc鈥?loadndisdriver.c:267: warning: incompatible implicit declaration of built-in function 鈥榤alloc鈥?loadndisdriver.c:271: warning: implicit declaration of function 鈥榤emset鈥?loadndisdriver.c:271: warning: incompatible implicit declaration of built-in function 鈥榤emset鈥?loadndisdriver.c:272: warning: incompatible implicit declaration of built-in function 鈥榮trncpy鈥?loadndisdriver.c:280: warning: implicit declaration of function 鈥榬eaddir鈥?loadndisdriver.c:280: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:282: error: storage size of 鈥榮tatbuf鈥?isn鈥檛 known
loadndisdriver.c:284: error: dereferencing pointer to incomplete type
loadndisdriver.c:287: warning: implicit declaration of function 鈥榮tat鈥?loadndisdriver.c:287: error: dereferencing pointer to incomplete type
loadndisdriver.c:288: warning: implicit declaration of function 鈥楽_ISREG鈥?loadndisdriver.c:289: error: dereferencing pointer to incomplete type
loadndisdriver.c:294: warning: incompatible implicit declaration of built-in function 鈥榮trlen鈥?loadndisdriver.c:294: error: dereferencing pointer to incomplete type
loadndisdriver.c:296: warning: implicit declaration of function 鈥榮trcasecmp鈥?loadndisdriver.c:296: error: dereferencing pointer to incomplete type
loadndisdriver.c:299: error: dereferencing pointer to incomplete type
loadndisdriver.c:302: error: dereferencing pointer to incomplete type
loadndisdriver.c:303: error: dereferencing pointer to incomplete type
loadndisdriver.c:305: error: dereferencing pointer to incomplete type
loadndisdriver.c:311: error: dereferencing pointer to incomplete type
loadndisdriver.c:312: error: dereferencing pointer to incomplete type
loadndisdriver.c:313: warning: implicit declaration of function 鈥榮trcpy鈥?loadndisdriver.c:313: warning: incompatible implicit declaration of built-in function 鈥榮trcpy鈥?loadndisdriver.c:314: error: dereferencing pointer to incomplete type
loadndisdriver.c:317: error: 鈥榮truct load_driver_file鈥?has no member named 鈥榮ize鈥?loadndisdriver.c:318: error: 鈥榮truct load_driver_file鈥?has no member named 鈥榙ata鈥?loadndisdriver.c:321: error: dereferencing pointer to incomplete type
loadndisdriver.c:282: warning: unused variable 鈥榮tatbuf鈥?loadndisdriver.c:344: error: expected expression before 鈥榮truct鈥?loadndisdriver.c:346: warning: implicit declaration of function 鈥榗losedir鈥?loadndisdriver.c:348: warning: implicit declaration of function 鈥榝ree鈥?loadndisdriver.c:355: warning: implicit declaration of function 鈥榤unmap鈥?loadndisdriver.c:355: error: 鈥榮truct load_driver_file鈥?has no member named 鈥榙ata鈥?loadndisdriver.c:355: error: 鈥榮truct load_driver_file鈥?has no member named 鈥榮ize鈥?loadndisdriver.c:357: error: 鈥榮truct load_driver_file鈥?has no member named 鈥榙ata鈥?loadndisdriver.c:357: error: 鈥榮truct load_driver_file鈥?has no member named 鈥榮ize鈥?loadndisdriver.c: In function 鈥榞et_device鈥?
loadndisdriver.c:367: error: storage size of 鈥榮tatbuf鈥?isn鈥檛 known
loadndisdriver.c:370: error: 鈥楲OG_KERN鈥?undeclared (first use in this function)
loadndisdriver.c:370: error: 鈥楲OG_INFO鈥?undeclared (first use in this function)
loadndisdriver.c:373: error: 鈥榚rrno鈥?undeclared (first use in this function)
loadndisdriver.c:374: error: 鈥楨INVAL鈥?undeclared (first use in this function)
loadndisdriver.c:376: warning: implicit declaration of function 鈥榮nprintf鈥?loadndisdriver.c:376: warning: incompatible implicit declaration of built-in function 鈥榮nprintf鈥?loadndisdriver.c:407: warning: incompatible implicit declaration of built-in function 鈥榮trncpy鈥?loadndisdriver.c:367: warning: unused variable 鈥榮tatbuf鈥?loadndisdriver.c: In function 鈥榣oad_device鈥?
loadndisdriver.c:419: error: 鈥楧IR鈥?undeclared (first use in this function)
loadndisdriver.c:419: error: 鈥榙ir鈥?undeclared (first use in this function)
loadndisdriver.c:423: error: 鈥楲OG_KERN鈥?undeclared (first use in this function)
loadndisdriver.c:423: error: 鈥楲OG_INFO鈥?undeclared (first use in this function)
loadndisdriver.c:424: warning: incompatible implicit declaration of built-in function 鈥榤emset鈥?loadndisdriver.c:426: error: 鈥榚rrno鈥?undeclared (first use in this function)
loadndisdriver.c:427: error: 鈥楨INVAL鈥?undeclared (first use in this function)
loadndisdriver.c:429: error: 鈥楴ULL鈥?undeclared (first use in this function)
loadndisdriver.c:434: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:435: error: dereferencing pointer to incomplete type
loadndisdriver.c:436: error: dereferencing pointer to incomplete type
loadndisdriver.c:439: error: dereferencing pointer to incomplete type
loadndisdriver.c:447: error: expected expression before 鈥榮truct鈥?loadndisdriver.c: In function 鈥榞et_ioctl_device鈥?
loadndisdriver.c:464: error: 鈥楩ILE鈥?undeclared (first use in this function)
loadndisdriver.c:464: error: 鈥榩roc_misc鈥?undeclared (first use in this function)
loadndisdriver.c:472: warning: implicit declaration of function 鈥榮trstr鈥?loadndisdriver.c:472: warning: incompatible implicit declaration of built-in function 鈥榮trstr鈥?loadndisdriver.c:473: warning: implicit declaration of function 鈥榮trtol鈥?loadndisdriver.c:473: error: 鈥楴ULL鈥?undeclared (first use in this function)
loadndisdriver.c:483: error: 鈥楲OG_KERN鈥?undeclared (first use in this function)
loadndisdriver.c:483: error: 鈥楲OG_INFO鈥?undeclared (first use in this function)
loadndisdriver.c:488: warning: implicit declaration of function 鈥榰nlink鈥?loadndisdriver.c:489: warning: implicit declaration of function 鈥榤knod鈥?loadndisdriver.c:489: error: 鈥楽_IFCHR鈥?undeclared (first use in this function)
loadndisdriver.c:489: error: 鈥楳ISC_MAJOR鈥?undeclared (first use in this function)
loadndisdriver.c:490: error: 鈥榚rrno鈥?undeclared (first use in this function)
loadndisdriver.c:495: error: 鈥極_RDONLY鈥?undeclared (first use in this function)
loadndisdriver.c: In function 鈥榤ain鈥?
loadndisdriver.c:511: warning: implicit declaration of function 鈥榦penlog鈥?loadndisdriver.c:511: error: 鈥楲OG_PERROR鈥?undeclared (first use in this function)
loadndisdriver.c:511: error: 鈥楲OG_CONS鈥?undeclared (first use in this function)
loadndisdriver.c:511: error: 鈥楲OG_KERN鈥?undeclared (first use in this function)
loadndisdriver.c:511: error: 鈥楲OG_DEBUG鈥?undeclared (first use in this function)
loadndisdriver.c:513: error: 鈥楲OG_INFO鈥?undeclared (first use in this function)
loadndisdriver.c:515: warning: implicit declaration of function 鈥榮trncmp鈥?loadndisdriver.c:517: warning: implicit declaration of function 鈥榩rintf鈥?loadndisdriver.c:517: warning: incompatible implicit declaration of built-in function 鈥榩rintf鈥?loadndisdriver.c:527: warning: implicit declaration of function 鈥榓toi鈥?loadndisdriver.c:542: warning: implicit declaration of function 鈥榓tof鈥?loadndisdriver.c:549: warning: implicit declaration of function 鈥榮trcmp鈥?loadndisdriver.c:556: warning: incompatible implicit declaration of built-in function 鈥榮scanf鈥?loadndisdriver.c:590: warning: implicit declaration of function 鈥榗loselog鈥?make[1]: *** [loadndisdriver] Error 1
make[1]: Leaving directory `/home/yians/ndiswrapper-1.53/utils'
make: *** [install] Error 2


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 超级菜鸟在8.04下装ndiswrapper问题
帖子发表于 : 2009-03-10 21:52 
头像

注册: 2009-03-03 14:20
帖子: 37
送出感谢: 0 次
接收感谢: 0 次
看来你是没有搞明白。
Ndiswrapper是不用编辑的,源里有,还有一个图形界面的,叫Windows的无线驱动。
安装步骤是:
1. lssub 看一下识别了吗?如果是PCI的就用lspci
2. 安装驱动后,查看是不是安装成功,ndiswrapper -l
3. 启动网卡就可以了,sudo ifconfig wlan0 up, 如果是DHCP,就用sudo dhcpd wlan0
就可以了。

如果你的和我的一样是linksys的WUSB54GSC,还需要调节电压,其他的就不用了。当然最好使用原生的linux驱动。


_________________
9shell.com


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 5 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译