简体   繁体   English

安装/激活运行 MAMP 的 PHP "intl" 扩展

[英]Install/activate PHP "intl" extension running MAMP

Ok, I'm running MAMP 1.9.5, which includes PHP 5.3.5, on my MacBook Pro.好的,我正在 MacBook Pro 上运行 MAMP 1.9.5,其中包括 PHP 5.3.5。

The "intl" extension isn't included/activated and I've tried a lot of different ways to install it ("./pecl install intl" doesn't seem to do it), but can't make it work. “intl”扩展没有包含/激活,我尝试了很多不同的安装方法(“./pecl install intl”似乎没有这样做),但不能让它工作。

I've also "googled my ass of" but can't find any hints.我也“用谷歌搜索了我的屁股”,但找不到任何提示。

Anyone of you that know how to do it?你们中有人知道怎么做吗? Or, alternatively, have and advice on how to install my own MySQL+Apache+PHP (and include "intl")?或者,对如何安装我自己的 MySQL+Apache+PHP(并包括“intl”)有意见和建议?

I'm trying to do this to be able to run Symfony2.我试图这样做是为了能够运行 Symfony2。 So if you have any advice on how to install MySQL+Apache+PHP+Symfony2 on Mac, thats also welcome :)因此,如果您对如何在 Mac 上安装 MySQL+Apache+PHP+Symfony2 有任何建议,也欢迎 :)

The best way is to download PHP for OSX at http://php-osx.liip.ch/ and then copy the intl.so file from最好的办法是下载PHP的OSX在http://php-osx.liip.ch/ ,然后复制intl.so从文件

/usr/local/php5-20121126-100332/lib/php/extensions/no-debug-non-zts-20100525/intl.so

to

/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/intl.so

Worked like a charm for me for PHP 5.4 PHP 5.4 对我来说就像一个魅力

I just compiled on mine the other day.前几天我刚刚编译了我的。

I wrote a self reminder post here: http://szemian.wordpress.com/2011/03/21/compiling-intl-extension-for-mamp/我在这里写了一个自我提醒的帖子: http : //szemian.wordpress.com/2011/03/21/compiling-intl-extension-for-mamp/

Let me know if you need further explanation.如果您需要进一步解释,请告诉我。 :) :)

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

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