Closed ostrolucky closed 8 years ago
@gadelat Did you run composer install
?
[gadelat@L6410A country-list]$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
[gadelat@L6410A country-list]$ ./console build
Fatal error: Class 'Locale' not found in /home/gadelat/tmp/country-list/vendor/symfony/locale/Symfony/Component/Locale/Locale.php on line 15
@gadelat You must install dev dependencies. Please run:
composer install --dev
I did. If I didn't, there wouldn't be vendor folder.
[gadelat@L6410A country-list]$ composer install --dev
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
[gadelat@L6410A country-list]$ ./console build
Fatal error: Class 'Locale' not found in /home/gadelat/tmp/country-list/vendor/symfony/locale/Symfony/Component/Locale/Locale.php on line 15
sudo apt-get install php5-intl
In my case in ArchLinux, php-intl package was needed, plus uncommenting intl.so module in /etc/php/php.ini. Now it works. Thanks.
:+1:
I should add requirement to composer.json.
$ ./console build
Fatal error: Class 'Locale' not found in /home/gadelat/tmp/country-list/vendor/symfony/locale/Symfony/Component/Locale/Locale.php on line 15