Chinaunix

标题: 学写扩展出错了 [打印本页]

作者: shitou254    时间: 2008-09-26 08:45
标题: 学写扩展出错了
D:\cygwin\php-5.2.6\ext>php ext_skel_win32.php --extname=mytest
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)

Warning: fopen(mytest/mytest.dsp): failed to open stream: No such file or directory in D:\cygwin\php-5.2.6\ext\ext_skel_win32.php on line 45

Warning: fopen(mytest/mytest.php): failed to open stream: No such file or directory in D:\cygwin\php-5.2.6\ext\ext_skel_win32.php on line 52
终于知道了

cygwin 安装的不完全,现在好了。新问题有了缺少 php.h 这个问题回答了也给分!!!
问题全部解决了!!!
缺少 php.h 是因为没有在ext目录中编译。
问题已经全部解决了!!
一个简单的扩展已经可以工作了!!!

[ 本帖最后由 shitou254 于 2008-9-27 17:13 编辑 ]
作者: ziggler    时间: 2008-09-26 14:39
错误很明显啊,缺啥补啥倍。
作者: shitou254    时间: 2008-09-26 15:29
标题: 回复 #2 ziggler 的帖子

我想知道怎么结贴!
作者: ziggler    时间: 2008-09-26 15:30
原帖由 shitou254 于 2008-9-26 15:29 发表

我想知道怎么结贴!

直接结啊
作者: shitou254    时间: 2008-09-27 08:51
标题: 终于知道了
cygwin 安装的不完全,现在好了。新问题有了缺少 php.h 这个问题回答了也给分!!!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2