需要ext-intl * php

时间:2014-09-10 08:11:50

标签: php xampp lampp libphonenumber

我正在使用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].

1 个答案:

答案 0 :(得分:2)

您可以通过apt-get:

安装intl扩展
sudo apt-get install php5-intl

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

sudo service apache2 restart