错误:在 MAC 上安装新版本的 PHP
我正在尝试为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我的网站从该论坛获得了大量流量。
抱歉,我应该更清楚地表明该设置仅适用于 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.
只做通常的“./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.
你必须确保你用curl获取的源代码实际上位于你运行phpize的文件夹中。
you have to make sure that your sources which you fetched with curl actually are in that folder where you run phpize.