我正在使用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].
答案 0 :(得分:2)
您可以通过apt-get:
安装intl扩展sudo apt-get install php5-intl
安装完成后重新启动服务器:
sudo service apache2 restart