php C扩展 ext_skel报错

WBOY
發布: 2016-06-06 20:17:20
原創
1574 人瀏覽過

执行./ext_skel --extname=test2_module --proto=test2_module.def
报错 :
awk: syntax error at source line 256 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
context is
if (!stubs) print "" > extname >>> "/function_warning" awk: illegal statement at source line 257 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
awk: syntax error at source line 267 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
Creating basic files: config.m4 config.w32 .gitignore test2_module.c php_test2_module.h CREDITS EXPERIMENTAL tests/001.phpt test2_module.phprm: function_entries: No such file or directory
rm: function_declarations: No such file or directory
rm: function_stubs: No such file or directory
[done].
请问如何处理

回复内容:

执行./ext_skel --extname=test2_module --proto=test2_module.def
报错 :
awk: syntax error at source line 256 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
context is
if (!stubs) print "" > extname >>> "/function_warning" awk: illegal statement at source line 257 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
awk: syntax error at source line 267 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
Creating basic files: config.m4 config.w32 .gitignore test2_module.c php_test2_module.h CREDITS EXPERIMENTAL tests/001.phpt test2_module.phprm: function_entries: No such file or directory
rm: function_declarations: No such file or directory
rm: function_stubs: No such file or directory
[done].
请问如何处理

确保一下你执行时 ext_skel 有对目录写入的权限。

确认 test2_module.def 文件存在?

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板