0

我正在使用 UBUNTU 14.04 并安装了 xampp。

但是,我遇到了问题下载包

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].
4

1 回答 1

2

您可以通过 apt-get 安装 intl 扩展:

sudo apt-get install php5-intl

安装完成后重新启动服务器:

sudo service apache2 restart
于 2014-09-10T08:19:17.110 回答