Ubuntu:
sudo apt-get install php5-intl
Bu eklenti PHP paketiyle gelen sürümünden kurulabileceği gibi PECL eklentisi olarak da kurulabilir.
Bu PECL eklentisini kurma bilgisi kılavuzun PECL eklentisinin kurulması başlıklı faslında bulunabilir. Yeni dağıtımlar, indirmeler, kaynak dosyaları, sürdürücü bilgileri ve CHANGELOG gibi ek bilgiler şu adreste bulunabilir: » https://pecl.php.net/package/intl.
--enable-intl
seçeneğini kullanarak PHP paketiyle gelen
sürümü derlemek de mümkündür.
ICU'yu standart dizinlerden birine kurmadıysanız dinamik ilintileyicinin
(ld) kütüphaneyi bulabilmesi için kurduğunuz yeri
LD_LIBRARY_PATH
ortam değişkeninde belirtmelisiniz:
Aksi takdirde, PHP ve ICU kendi öntanımlı dizinlerine kurulmuşsa paketi yapılandırmak için ek seçenekler gerekir.
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.
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
On Fedora 18 "pecl install intl" wasn't working after "yum -y install icu" so I had to run "yum -y install php-intl" instead
- open your php.ini file c:/xampp/php/php.ini or search how to find it, it's up to your server.
- find for ;extension=php_intl.dll
- remove the comment ;
- restart the apache
- then it's working :)
i used the same when i have problem in any extensions, open php.ini then search for the extension then remove the comment.
You need to install the library.
yum install libicu-devel
Will get it working with "pecl install intl"
OS : CentOS 5.10
PHP : 5.5.12
We tried installing via *pecl install intl* , but we were getting below warning in php error logs
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/intl.so' - /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/local/lib/libicuio.so.55) in Unknown on line 0
Later we tried icu source from http://site.icu-project.org/download
Compile ICU ./configure --prefix=/opt/icu && make && make install
And post which we compiled PHP via source with following configurations:
--enable-intl
--with-icu-dir=/opt/icu
I'm running on Mac OS X using a MacPorts install. According to this page, my vanilla version of PHP 5.3.5 from MacPorts should include the intl functions by default. As far as I can see from phpinfo(), the MacPorts version did not disable it. However, the functions aren't visible and don't work.
It seems to require an additional:
sudo port install php5-intl
After which everything bursts into life.