系统相关
首页 > 系统相关> > Windows下的Phpize

Windows下的Phpize

作者:互联网

我尝试按照这里的说明进行操作:https://code.google.com/p/php-sweph/wiki/build来编译PHP扩展.我的操作系统是Windows XP.

我找不到“ phpize”来执行命令.但是,我已经安装了Pear for PHP.它仅适用于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

标签:php-extension,pear,windows,php
来源: https://codeday.me/bug/20191031/1972371.html