安装

--enable-intl will enable the extension while compiling PHP.

If your ICU is installed to a non-standard directory then you might want to specify its location in LD_LIBRARY_PATH environment variable so that dynamic linker can find it:

$ export LD_LIBRARY_PATH=/opt/icu/lib

Otherwise, if PHP and ICU are installed to their default locations, then the additional options to configure are not needed.

add a note

User Contributed Notes 6 notes

up
5
daniel at danielphenry dot com
7 years ago
To install on windows uncommenting the dll in php.ini is not enough you also need to include several other libraries in your system path (not user path). Found these details here: http://stackoverflow.com/a/6086991/819883
up
4
jltupac at hotmail dot com
9 years ago
Ubuntu:
sudo apt-get install php5-intl
up
2
jonwebb at tecbiz dot eu
8 years ago
On windows servers, open your php.ini (which should be in Program Files/PHP), and simply uncomment the extension.
extension=php_intl.dll
Restart IIS Webserver - done.
up
1
Saurabh
4 months ago
For amazon nginx server (CentOs), try the following:

sudo yum install libicu-devel
sudo yum install php-intl
up
0
domagoj dot starcevic1 at gmail dot com
22 days ago
On Windows, with Apache server, it might not be enough to uncomment the extension in the php.ini file. You also need to copy icu****.dll files (about five of them) from PHP folder to Apache /bin folder.
up
0
lee dot wp14 at gmail dot com
1 year ago
For ubuntu: apt install php-intl
To Top