2014-09-10 79 views
0

我使用UBUNTU 14.04並安裝了xampp。需要ext-intl * php

然而,我從

https://github.com/giggsey/libphonenumber-for-php有問題下載包。我也安裝了作曲家。 創建composer.json文件

當我運行php composer.phar install我收到以下錯誤

Problem 1 
    - giggsey/libphonenumber-for-php 6.2.2 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
    - giggsey/libphonenumber-for-php 6.2.1 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
    - giggsey/libphonenumber-for-php 6.2.0.1 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
    - giggsey/libphonenumber-for-php 6.2 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
    - giggsey/libphonenumber-for-php 6.1.1 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
    - giggsey/libphonenumber-for-php 6.1 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
    - giggsey/libphonenumber-for-php 6.0 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
    - Installation request for giggsey/libphonenumber-for-php ~6.0 -> satisfiable by giggsey/libphonenumber-for-php[6.0, 6.1, 6.1.1, 6.2, 6.2.0.1, 6.2.1, 6.2.2]. 

回答

2

您可以通過安裝在國際擴展apt-get的:

sudo apt-get install php5-intl 

重新啓動服務器在安裝完成後:

sudo service apache2 restart