How to Install PHP intl extension on OS X

WBOY
Freigeben: 2016-07-29 09:08:51
Original
1043 Leute haben es durchsucht

Step 1. Install ICU Libraries with Homebrew

First we’ll need to install any dependencies. To quote the intl package description:

“The Internationalization extension exposes functionality of the ICU library to PHP”.

The ICU Libraries is our only dependency. If you have Homebrew installed you can use that; alternatively, you can download and compile from source.

Using homebrew:

$ brew update
$ brew search icu # returns 'icu4c'

Success. Install:

$ brew install icu4c

A couple of minutes to download and compile, and ICU is installed. PECL will prompt you for the path where the header files and stuff were installed; on my machine this was:

/usr/local/Cellar/icu4c/56.1/

Step 2. Install Intl with PECL

$brew install homebrew/php/php56-intl

Restart apache

$sudo apachectl restart

Step 3. Check!

Finally, check that the module is registered:

$ php -m | grep intl # should return 'intl'

The second way using phpinfo()

参考链接地址:http://darraghenright.tumblr.com/post/22027208929/installing-intl-package-on-osx-lion

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

以上就介绍了How to Install PHP intl extension on OS X,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Verwandte Etiketten:
Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!