2015-09-24 52 views
0

我安裝了用於windows file.exe的Composer,並試圖第一次安裝cakePHP 3.1.1,但得到了下面的錯誤。在該文件夾中創建的文件[CakePHP311]也具有XAMPP [PHP版本5.6.8] + Windows 10 Pro。CakePHP 3.1.1安裝錯誤

什麼是這個錯誤和cakePHP文件需要重新設置?

[email protected]/C/xampp/htdocs/cakePHP_Blog 
$ composer create-project --prefer-dist cakephp/app cakePHPblog 
Installing cakephp/app (3.1.1) 
    - Installing cakephp/app (3.1.1) 
    Downloading: 100% 

Created project in cakePHPblog 
Loading composer repositories with package information 
Installing dependencies (including require-dev) 
Your requirements could not be resolved to an installable set of packages. 

問題

- cakephp/cakephp 3.1.x-dev requires ext-intl * -> the requested PHP extensi on intl is missing from your system. 
- cakephp/cakephp 3.1.0-beta2 requires ext-intl * -> the requested PHP exten sion intl is missing from your system. 
- cakephp/cakephp 3.1.0-beta requires ext-intl * -> the requested PHP extens ion intl is missing from your system. 
- cakephp/cakephp 3.1.0-RC1 requires ext-intl * -> the requested PHP extensi on intl is missing from your system. 
- cakephp/cakephp 3.1.0 requires ext-intl * -> the requested PHP extension i ntl is missing from your system. 
- Installation request for cakephp/cakephp ~3.1 -> satisfiable by cakephp/ca kephp[3.1.0, 3.1.0-RC1, 3.1.0-beta, 3.1.0-beta2, 3.1.x-dev]. 
+0

[CakePHP 3.0 installation:intl擴展名從系統中丟失]的可能重複(http://stackoverflow.com/questions/26285280/cakephp-3-0-installation-intl-extension-missing-from-system) – ndm

回答

0

確保擴展php_intl已安裝並啓用。它捆綁了XAMPP安裝,但可能未啓用。您可以通過檢查你的php.ini(位於/xampp/php/php.ini)以下行使其可以被註釋掉,並刪除註釋:

;extension=php_intl.dll 

TO(刪除分號)

extension=php_intl.dll 

然後您將需要從Xampp控制面板重新啓動Apache。

+0

要安裝cakePHP apache/mysql應該已經運行了? –

+0

修復後還是重裝cakePHP還是不影響? –

1

這個錯誤發生在php-intl插件缺失。

如果你使用Linux,你可以嘗試的apt-get安裝PHP5-國際yum的安裝PHP-國際命令。