使用composer安装的CakePHP 3.0已损坏?
我在尝试拉本地主机时遇到此错误使用composer安装的CakePHP 3.0已损坏?,cakephp,installation,composer-php,cakephp-3.0,bootstrapping,Cakephp,Installation,Composer Php,Cakephp 3.0,Bootstrapping,我在尝试拉本地主机时遇到此错误 错误:警告:require(C:\xampp\htdocs\sync\vendor\autoload.php):无法打开流:第23行的C:\xampp\htdocs\sync\config\bootstrap.php中没有这样的文件或目录 使用composer从cakephp站点安装: 每次尝试时,我都会遇到cmd中的一些错误: C:\xampp\htdocs>php composer.phar create-project --prefer-dist -s
错误:警告:require(C:\xampp\htdocs\sync\vendor\autoload.php):无法打开流:第23行的C:\xampp\htdocs\sync\config\bootstrap.php中没有这样的文件或目录
使用composer从cakephp站点安装:
每次尝试时,我都会遇到cmd中的一些错误:
C:\xampp\htdocs>php composer.phar create-project --prefer-dist -s dev cakephp/app sync
Installing cakephp/app (dev-master ebdd94ef28cd742b90fc03a5f8cca46c6306ded2)
- Installing cakephp/app (dev-master master)
Loading from cache
Created project in sync
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
Problem 2
- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/debug_kit 3.0.x-dev requires cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
- Installation request for cakephp/debug_kit 3.0.*-dev -> satisfiable by cakephp/debug_kit[3.0.x-dev].
更新:
有趣的拍摄。我现在已经在5台机器上安装了CakePHP 3 beta版,我一次也没有看到这个错误。查看后,我发现(尝试了他们提供的所有解决方案都无效): 解决方案 我试过:
- 打开/xampp/php/php.ini
- 变化;extension=php\u intl.dll到extension=php\u intl.dll(删除分号)
- 将所有/xamp/php/ic*.dll文件复制到/xampp/apache/bin
- 在Xampp控制面板中重新启动apache
我的名字似乎比另一个更准确,人们更容易找到。希望这能帮助更多人。不,只是阅读错误!它已经告诉你出了什么问题
- 问题1(…)cakephp/cakephp 3.0.x-dev需要ext intl*->系统中缺少请求的PHP扩展intl。
- 问题2-cakephp/cakephp 3.0.x-dev需要ext intl->系统中缺少请求的PHP扩展intl。
有趣的拍摄。我现在已经在5台机器上安装了3个测试版,我一次也没有看到这个错误。谢谢你的意见。看了之后,我发现这个请不要再做这样的编辑