使用语言环境的symfony安装程序失败

时间:2015-05-28 13:49:03

标签: php symfony

我一直在尝试使用symfony安装程序创建项目:Installing and Configuring Symfony

然而,我遇到了一些我不明白的问题。给出命令后的终端输出:

symfony new beta

是:

Downloading Symfony...

4.92 MB/4.92 MB ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  100%

Preparing project...

PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in phar:///usr/local/bin/symfony/src/Symfony/Installer/NewCommand.php on line 270
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/symfony:0
PHP   2. require() /usr/local/bin/symfony:10
PHP   3. Symfony\Component\Console\Application->run() phar:///usr/local/bin/symfony/symfony:35
PHP   4. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/symfony/vendor/symfony/console/Symfony/Component/Console/Application.php:126
PHP   5. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/symfony/vendor/symfony/console/Symfony/Component/Console/Application.php:195
PHP   6. Symfony\Component\Console\Command\Command->run() phar:///usr/local/bin/symfony/vendor/symfony/console/Symfony/Component/Console/Application.php:874
PHP   7. Symfony\Installer\NewCommand->execute() phar:///usr/local/bin/symfony/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
PHP   8. Symfony\Installer\NewCommand->dumpReadmeFile() phar:///usr/local/bin/symfony/src/Symfony/Installer/NewCommand.php:61
PHP   9. date() phar:///usr/local/bin/symfony/src/Symfony/Installer/NewCommand.php:270



[Symfony\Component\Intl\Exception\MethodArgumentValueNotImplementedException]                                                                                                   
The Symfony\Component\Intl\Collator\Collator::__construct() method's argument $locale value 'fr_FR' behavior is not implemented. Only the locale "en" is supported.  Please install the "intl" extension for full localization capabilities.                                                                 

new directory [version]

我不记得曾经在我的机器上安装法语,虽然我喜欢这种语言的声音但我不能说出来。在我的phpinfo()中,我找不到任何关于语言环境的信息,也不知道如何从这一点开始,无论是在更改我的机器上的语言环境,还是通过更改symfony设置中的语言环境,也许?

php:5.5.24 os:fedora 20

1 个答案:

答案 0 :(得分:1)

简而言之,请参阅我的评论。

确保在php.ini中设置date.timezone = America/Detroit。您可以通过从命令行运行php -i | grep ini来查找配置的位置。

还要确保安装了php-intl。通常是大多数php5安装,但如果没有尝试运行yum install php-intl或使用yum search php来找到正确的软件包名称。

重新启动服务器并再次尝试安装。