适用于 Windows 的 PECL 扩展

发布于 2024-08-17 17:41:26 字数 431 浏览 8 评论 0原文

我在这里找到了一些相关的帖子,但没有得到我的答案。所以再次发帖。
如何在 Windows 上安装 PECL 扩展?假设我想要 Windows XP 上的 PECL oAuth 扩展。
我知道两种方法,但没有一个对我有用。

  1. 该网站 http://pecl4win.php.net/ 已关闭数月。所以我无法下载DLL。有什么地方可以下载DLL吗?

  2. 运行命令 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.

  1. 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 ?

  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

靖瑶 2024-08-24 17:41:26

现在可以在这里找到版本:
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.

懷念過去 2024-08-24 17:41:26

目前 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.

池予 2024-08-24 17:41:26

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.

江城子 2024-08-24 17:41:26

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文