适用于 Windows 的 PECL 扩展
我在这里找到了一些相关的帖子,但没有得到我的答案。所以再次发帖。
如何在 Windows 上安装 PECL 扩展?假设我想要 Windows XP 上的 PECL oAuth 扩展。
我知道两种方法,但没有一个对我有用。
该网站 http://pecl4win.php.net/ 已关闭数月。所以我无法下载DLL。有什么地方可以下载DLL吗?
运行命令 pecl install oauth-0.99.9.tgz 抛出错误
DSP oauth.dsp 不存在。
我也尝试了一些其他扩展并得到了相同的错误。
我在这里缺少什么?
I found a few related posts here but didn't get my answer. So posting again.
How would I install a PECL extension on windows? Say I want the PECL oAuth extension on Windows XP.
I know 2 methods, but none of them is working for me.
The site http://pecl4win.php.net/ is down for months. So I cant download the DLL. Is there any place we can download the DLLs from ?
running the command
pecl install oauth-0.99.9.tgz is throwing the error
The DSP oauth.dsp does not exist.
I tried with few other extensions also and getting the same error.
What am I missing here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
现在可以在这里找到版本:
http://windows.php.net/downloads/pecl/releases/
如果您需要一个那里不可用的扩展,您可以在 items.php.net 邮件列表的 pecl-dev 上询问。
Releases can now be found here:
http://windows.php.net/downloads/pecl/releases/
If you need an extension not available there you might ask on the pecl-dev at lists.php.net mailing list.
我在 http://windows.php.net/downloads/pecl/ 中找到了我想要的东西发布/
I got what I am looking for in http://windows.php.net/downloads/pecl/releases/
目前 Windows 的 PECL 正处于奇怪的改革状态。原因是我相信他们正在尝试提供 VS2008 源版本。我实际上建议暂时使用 Zend Server 直到 php 的 Windows 一半小组把一切都修好了。 Zend Server 包含几乎所有可以在 PECL 中找到的扩展,并且其他一切,如果你幸运,你可以自己找到一个编译版本。
Currently PECL for windows is in an odd reformation state. The reason being that I believe they are trying to provide VS2008 source versions. I would actually suggest using Zend Server for now until the windows half of the php group gets everything fixed up. Zend Server includes almost all of the extensions that you can find in PECL, and everything else, if you are lucky, you could find an compile yourself.
PECL 安装程序下载扩展的源代码并尝试使用本地 C 编译器对其进行编译。问题是整个过程是为Unix系统设计的,其中有C编译器可用或可以轻松安装。在Windows下设置编译C代码的环境相当复杂。
理想的解决方案是获取某人已经编译过的 DLL 文件。这就是 pcle4win 网站的用途。但是,目前没有官方存储库可下载 PECL DLL,因此您只有两种选择:
如果有一个 DLL 存储库那就太好了,但我不知道有什么。
The PECL installer downloads the source code of the extension and tries to compile it with your local C compiler. The problem is that the whole process is designed for Unix systems, where a C compiler is available or can be easily installed. Setting an environment to compile C code under Windows is pretty complicate.
The ideal solution is getting a DLL file that someone already compiled. That's what the pcle4win site was for. However, there's currently no official repository to download PECL DLLs so you only have two alternatives:
It'd be cool that there was a DLL repository out there but I'm unaware of any.
php 源附带了一组用于 Windows 的配置脚本(使用 Windows 脚本主机),就 php 而言,它模仿 autoconf 工具。如果您将扩展的代码放置在 /ext 目录下的目录中(所有其他扩展如 bcmath、bzip 等都位于该目录中),您可以让
buildconf
脚本创建一个 makefile其中包括该(新)扩展的构建规则。http://wiki.php.net/internals 有分步说明/windows/stepbystepbuild 看起来很简短但可行。
The php source ships with a set of configuration scripts for windows (using windows script host) that mimics the autoconf tools as far as php is concerned. If you place the code for the extension in a directory under the /ext directory (where all the other extensions like bcmath, bzip, ... are located) you can let the
buildconf
-script create a makefile that includes the build rules for that (new) extension.There's a step-by-step walk-through at http://wiki.php.net/internals/windows/stepbystepbuild which seems to be brief but feasible.
编译oauth: http://windows.php.net/downloads/pecl/releases/oauth /
另一个 pecl 扩展: http://windows.php.net/downloads/pecl /发布/
compiled oauth: http://windows.php.net/downloads/pecl/releases/oauth/
another pecl extension: http://windows.php.net/downloads/pecl/releases/