总有人间一两风,填我十万八千梦

PHP Composer: The requested PHP extension ext-intl * is missing from your system的解决方案

软件技巧 Zero、J 1312℃ 0评论

使用PHP Composer安装一个库的时候提示错误Composer: The requested PHP extension ext-intl * is missing from your system,该错误表示当前未开启扩展intl。

系统环境

  • 操作系统:Ubuntu 18.04 LTS Server
  • PHP:7.2
  • PHP运行模式:Apache+PHP

解决方案

Windows下:开启扩展 extension=intl

Linux下:

使用命令apt install php-intl 安装扩展intl,然后使用命令phpenmod intl 启用扩展,重启一下Apache或者你的FPM(如果你用的是FPM的话)

转载请注明:悠然品鉴 » PHP Composer: The requested PHP extension ext-intl * is missing from your system的解决方案

喜欢 (0)or分享 (0)
发表我的评论
取消评论

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址