Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The requested PHP extension intl is missing from your system (SonataAdminBundle) in Symfony2

Tags:

php

symfony

intl

I try to install the sandbox but I get the following error from composer:

Loading composer repositories with package information Installing dependencies from lock file Your requirements could not be resolved to an installable set of packages.

Problem 1

- Installation request for sonata-project/intl-bundle 2.1.0 -> satisfiable by sonata-project/intl-bundle 2.1.0.`

- sonata-project/intl-bundle 2.1.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.`

Problem 2

- sonata-project/intl-bundle 2.1.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.`

- sonata-project/news-bundle 2.1.x-dev requires sonata-project/intl-bundle 2.1.* -> satisfiable by sonata-project/intl-bundle 2.1.0.
- Installation request for sonata-project/news-bundle 2.1.
like image 532
Krishna Ghodke Avatar asked Jul 17 '13 11:07

Krishna Ghodke


People also ask

How do I enable Intl extension in PHP?

The intl extension is enabled by default on PHP versions above 7.2. If you're noticing any errors on your site related to this extension, please Contact Support for further assistance. If your site is still running PHP 5.6, you must enable this extension manually by making a small addition to your phprc file.

How do I enable PHP extensions in Windows?

On Windows, you have two ways to load a PHP extension: either compile it into PHP, or load the DLL. Loading a pre-compiled extension is the easiest and preferred way. To load an extension, you need to have it available as a ". dll" file on your system.

What is Intl extension in PHP?

The Internationalization extension (Intl) is a wrapper for the ICU library, a set of C/C++ and Java libraries that provide Unicode and Globalization support for software applications. It enables PHP programmers to perform UCA-conformant collation and date/time/number/currency formatting in their scripts.


2 Answers

I had the same problem while I was installing new Magento 2.0, after different hit and trials, I manged to solve it by following these steps:

I copied all icu* files from php directory to Appache directory, and it worked.

Php direcotry:

WAMP\bin\php\php5.5.12

Appache Directory:

WAMP\bin\apache\apache2.4.9

Make sure to un-comment following line in php.ini file:

extension=ext/php_intl.dll

like image 63
Sohaib Afzal Avatar answered Sep 20 '22 21:09

Sohaib Afzal


Linux user

yum install php-intl
like image 42
Dharmendra Singh Avatar answered Sep 20 '22 21:09

Dharmendra Singh