2017-07-06 60 views
0

所以顯然我有2個版本的PHP安裝。我有5.6和7 我使用XAMPP Mac和它適用於5.6,我嘗試下載作曲家,並拒絕在郵件的末尾,安裝CakePHP的bwith此錯誤作曲家使用不同版本的php

- cakephp/cakephp 3.4.9 requires ext-intl * -> the requested PHP extension intl is missing from your system. 

和向下它說

o enable extensions, verify that they are enabled in your .ini files: 
- /usr/local/etc/php/7.0/php.ini 
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. 

因此它運行在甚至不工作的PHP 7上。我嘗試從php.ini中刪除分號 沒有任何工作 謝謝

+3

我認爲你需要激活國際擴展。 你可以按照[https://stackoverflow.com/questions/27886117/php-intl-installation-on-xampp](https://stackoverflow.com/questions/27886117/php-intl-installation-on-xampp) –

回答

0

如上所述,cakePHP框架需要國際化擴展(ext-intl)。作爲一個最佳實踐(並且爲了節省時間),我建議啓動一個虛擬機或與您的服務器相同的平臺(windows,linux,unix,osx)。這樣你的發展環境和生產環境是一樣的。

至於如何使EXT-國際:

+0

非常感謝!有效 – Raghaddee