我刚刚安装了ZF2beta5应用程序 https://github.com/zendframework/ZendSkeletonApplication根据给定的说明:
$ git clone git://github.com/zendframework/ZendSkeletonApplication.git ./
Cloning into '.'...
remote: Counting objects: 1494, done.
remote: Compressing objects: 100% (660/660), done.
remote: Total 1494 (delta 681), reused 1373 (delta 581)
Receiving objects: 100% (1494/1494), 397.42 KiB | 357 KiB/s, done.
Resolving deltas: 100% (681/681), done.
$ php composer.phar install
Installing dependencies
- Installing zendframework/zendframework (dev-master)
Cloning d6b0afe61149c6d0669743aab5c73285c42cd0db
zendframework/zendframework suggests installing doctrine/common (Doctrine\Common >=2.1 for annotation features)
Writing lock file
Generating autoload files
当我访问该应用程序时,出现以下错误:
致命错误:找不到类“Locale”
./vendor/zendframework/zendframework/library/Zend/I18n/Translator/Translator.php
220号线
我没有尝试安装Doctrine
按照建议(因为我最终不想使用 Doctrine)。
有人知道如何解决这个问题吗?
您需要安装intl
PHP 扩展。
对于基于 APT 的系统,请尝试:sudo apt-get install php5-intl
对于基于 YUM 的系统,请尝试:sudo yum install php-intl
对于 OS X,从本文 http://mansion.im/2011/php-with-intl-and-gettext-on-osx-lion/,但请检查您拥有的 PHP 版本并下载正确的源代码。
之后您可能需要重新启动 PHP 或您的 Web 服务器。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)