问题描述
我正在尝试按照此处的说明进行操作: https://code. google.com/p/php-sweph/wiki/build 来编译PHP扩展.我的操作系统是Windows XP.
I'm trying to follow the instructions here: https://code.google.com/p/php-sweph/wiki/build to compile a PHP extension. My OS is Windows XP.
我找不到执行命令的"phpize".但是,我已经为PHP安装了Pear.是仅适用于Linux的东西,还是可以通过Windows使用phpsize进行编译?
I'm unable to find "phpize" to do the command. However, I've installed Pear for PHP. is it something only for Linux or is there a way to compile with phpsize with Windows?
推荐答案
在Windows中,编译脚本设计可编译php本身,并应添加扩展名以与php一起编译...
In windows compile script design to compile php itself and should add your extension to compile with php ...
打开Visual Studio开发人员命令提示符(64位或32位), 并运行
Open a Visual Studio developer command prompt (either 64 or 32 bit), and run
cd C:\ php-src buildconf.bat --add-modules-dir = C:\ MyPhpExtensions buildconf.bat将扫描C:\ MyPhpExtensions的每个子文件夹,以查找 用于config.w32文件.
cd C:\php-src buildconf.bat --add-modules-dir=C:\MyPhpExtensions buildconf.bat will scan each subfolder of C:\MyPhpExtensions looking for config.w32 files.
然后它将生成一个configure.bat.
It will then generate a configure.bat.
您可以在此处了解更多信息:在Windows上编译扩展程序
You can read more here:Compile an extension on Windows
这篇关于Windows下的Phpize的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!