错误:在 MAC 上安装新版本的 PHP

发布于 2024-10-01 17:06:20 字数 836 浏览 2 评论 0原文

我正在尝试为 mac 启用 php_soap 模块,因此我按照一些教程来回答我自己的问题( MAC OSX : PHP_startup 无法加载动态库 php_soap.so)

这里是教程 >>> http ://www.bdoran.co.uk/2010/08/03/installing-php-soap-on-osx-leopard-10-6-4/

1)我替换了 curl -O http ://de3.php.net/distributions/php-5.3.1.tar.bz2

curl -O http://de3.php.net/distributions/php-5.3.3.tar.bz2

2) 当教程告诉我要做的事情:

cd ext/php

在执行 phpize 之前,

它告诉我cd: ext/php: 没有这样的文件或目录

如何绕过该问题来运行 phpize 并按照教程启用这个该死的 SOAP 模块?

谢谢

i'm trying to enable the php_soap module for mac so i follow some tutorial to answer my own question ( MAC OSX : PHP_startup unable to load dynamic library php_soap.so)

Here is the tutorial >> http://www.bdoran.co.uk/2010/08/03/installing-php-soap-on-osx-leopard-10-6-4/

1) I replaced curl -O http://de3.php.net/distributions/php-5.3.1.tar.bz2 with

curl -O http://de3.php.net/distributions/php-5.3.3.tar.bz2

2) When the tutoral tells to do :

cd ext/php

just before doing phpize

it tells me cd: ext/php: No such file or directory

How to bypass that probelm to run phpize and to follow the tutorial in order to enable this freaking SOAP module please ?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

北凤男飞 2024-10-08 17:06:20

我的网站从该论坛获得了大量流量。

抱歉,我应该更清楚地表明该设置仅适用于 OSX 和 PHP 的特定构建。

它适用于 5.3.2 之前的版本,但在 5.3.3 之后,soap 扩展已移至 /etc/soap,您现在可以更轻松地构建它:

curl -O http://de3.php.net/ distributions/php-5.3.3.tar.bz2

tar xjf php-5.3.3.tar.bz2

cd php-5.3.3

cd ext/soap

phpize

./configure

make

sudo make install

我还更新了教程对于 OSX Lion:http://www.bdoran.co.uk/2011/11/22/installing-php-soap-on-osx-lion-10-7-2 因为我只需要自己重新安装 SOAP 扩展。

再次对版本控制问题不清楚表示歉意。

I'm getting a lot of traffic to my site from this forum.

I apologise I should have made it more clear that the set up was for just the specific build of OSX and PHP.

It worked with version up to 5.3.2, but after 5.3.3 the soap extension has moved to /etc/soap, you can now build it much easier :

curl -O http://de3.php.net/distributions/php-5.3.3.tar.bz2

tar xjf php-5.3.3.tar.bz2

cd php-5.3.3

cd ext/soap

phpize

./configure

make

sudo make install

I've also updated the tutorial for OSX Lion : http://www.bdoran.co.uk/2011/11/22/installing-php-soap-on-osx-lion-10-7-2 as I just had to reinstall the SOAP extension myself.

Again, apologies for not being clear on the versioning issue.

迷离° 2024-10-08 17:06:20

只做通常的“./configure ; make”类型的过程怎么样?您正在下载的发行版中没有 php/ext 目录,因此该教程显然不再适用。 5.3.1 中可能有这样的目录,但 5.3.3 中显然不存在。

How about just doing the usual "./configure ; make" type process? There is no php/ext dir in the distribution you're downloading, so the tutorial obviously doesn't apply anymore. There maybe have been such a dir in 5.3.1, but it's obviously not there in 5.3.3.

天冷不及心凉 2024-10-08 17:06:20

你必须确保你用curl获取的源代码实际上位于你运行phpize的文件夹中。

you have to make sure that your sources which you fetched with curl actually are in that folder where you run phpize.

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