install php intl extension on mountain lion

对着背影说爱祢 提交于 2019-12-04 14:09:10

I found the problem.

I needed the right version of intl. I'm running php 5.3, which I think is the reason that when I ran:

sudo port install php53-intl

it worked.

Significantly, the parent folder also was named the same in the src and destination in the copy.

So my final process was:

sudo port install php53-intl
sudo cp /opt/local/lib/php54/extensions/no-debug-non-zts-20090626/intl.so  /usr/lib/php/extensions/no-debug-non-zts-20090626/
sudo pico /private/etc/php.ini

add

extension=intl.so

then

sudo apachectl restart

Use Brew.

e.g. brew install php56-intl

That's it! :-)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!