简体   繁体   English

在OSX上安装php-devel

[英]Install php-devel on osx

I can't install mongo because pecl fail with this error : 我无法安装mongo,因为pecl失败并显示以下错误:

ERROR : phpize failed

I read on internet that phpize fail when php-devel is not correctly installed. 我在互联网上阅读到,如果未正确安装php-devel,则phpize失败。 So I try to install php-devel. 所以我尝试安装php-devel。 But the only way available on osx seem to be macports. 但是osx上唯一可用的方法似乎是macports。 So I install macports and launch : 所以我安装了macports并启动:

sudo port install php5-devel

Error: php5-devel has been made obsolete by the port php5. Please install php5 instead.
Error: org.macports.configure for port php5-devel returned: obsolete port

I have the php 5.4.14 version but I found that macport install php-devel for version 5.3 so there is the previous error. 我有php 5.4.14版本,但我发现macport为5.3版安装了php-devel,所以存在先前的错误。

But how can I install mongo and so php-devel on osx ? 但是如何在osx上安装mongo以及php-devel呢? On linux, I see that yum integrate this functionality. 在Linux上,我看到yum集成了此功能。 But on osx I found anything ! 但是在osx上我发现了任何东西! :'( :'(

And what is the function of php-devel tool ? php-devel工具的功能是什么? I see it exists php5-devel tool. 我看到它存在php5-devel工具。 I must install php-devel, php5-devel or the both ?! 我必须安装php-devel,php5-devel或两者都安装!

Thank you ! 谢谢 ! :p :p

I found an alternative way to install mongo and the last php version. 我找到了另一种安装mongo和最新php版本的方法。 Auto-install PHP 5.4 . 自动安装PHP 5.4 Maybe it isn't the best way but it works good for me. 也许这不是最好的方法,但对我有用。

Good bye ! 再见 !

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM