Composer error: quot;PHP extension fileinfo is missing from your systemquot;(编写器错误:您的系统quot;中缺少PHP扩展名fileinfo(quot;PHP扩展名文件信息)
本文介绍了编写器错误:您的系统";中缺少PHP扩展名fileinfo(";PHP扩展名文件信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试安装Laravel包干预映像,运行时composer update
:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- intervention/image 2.0.5 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.0.4 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.0.3 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.0.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.0.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.0.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- Installation request for intervention/image 2.* -> satisfiable by intervention/image[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5].
我有php 5.4,php.ini
和phpinfo()
中启用了扩展:
fileinfo
fileinfo support enabled
version 1.0.5
并重新启动Apache.但还是没有运气。
推荐答案
显然是因为Web/apache和cli有单独的php.ini
文件,而Composer使用的是命令行界面,而phpinfo()使用的是主php.ini
。
如果您在CLI中运行php -m
,但没有看到模块名称,您应该找到CLIphp.ini
(在我的示例中是php-cli.ini
并添加扩展名。例如extension=php_fileinfo.dll
这篇关于编写器错误:您的系统";中缺少PHP扩展名fileinfo(";PHP扩展名文件信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
织梦狗教程
本文标题为:编写器错误:您的系统";中缺少PHP扩展名fileinfo(";PHP扩展名文件信息


基础教程推荐
猜你喜欢
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 如何替换eregi() 2022-01-01