我正在尝试按照此处的说明进行操作:https://code.google.com/p/php-sweph/wiki/build编译 PHP 扩展。我的操作系统是 Windows XP。
我找不到“phpize”来执行命令。但是,我已经为 PHP 安装了 Pear。它是仅适用于 Linux 的东西还是有办法在 Windows 上使用 phpsize 进行编译?
最佳答案
在 windows 编译脚本设计中编译 php 本身并且应该添加你的扩展以使用 php 编译 ...
On Windows, you don't call phpize but instead you call buildconf.bat.
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 will scan each subfolder of C:\MyPhpExtensions looking for config.w32 files.
It will then generate a configure.bat.
您可以在这里阅读更多内容: Compile an extension on Windows
关于Windows 下的 Phpize,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15999718/