Composer安装扩展包错误:flarum/core v0.1.0-beta requires intervention/image ^2.3.0 -> satisfiable by,- intervention/image 2.5.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system. intervention/image

Composer安装扩展包错误:flarum/core v0.1.0-beta requires intervention/image ^2.3.0 -> satisfiable by,- intervention/image 2.5.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system. intervention/image

报错信息如下:

composer create-project flarum/flarum . --stability=beta

Installing flarum/flarum (v0.1.0-beta.9)

  - Installing flarum/flarum (v0.1.0-beta.9): Downloading (100%)         

Created project in .

Loading composer repositories with package information

Updating dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.


  Problem 1

    - flarum/core v0.1.0-beta requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.2 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.3 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.4 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.5 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.6 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.7 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.7.1 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.7.2 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.8 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.8.1 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.8.2 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - flarum/core v0.1.0-beta.9 requires intervention/image ^2.3.0 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0].

    - intervention/image 2.5.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.4.3 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.4.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.4.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.4.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.9 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.8 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.7 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.6 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.5 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.4 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.3 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.14 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.13 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.12 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.11 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.10 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - intervention/image 2.3.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - Installation request for flarum/core ^0.1.0 -> satisfiable by flarum/core[v0.1.0-beta, v0.1.0-beta.2, v0.1.0-beta.3, v0.1.0-beta.4, v0.1.0-beta.5, v0.1.0-beta.6, v0.1.0-beta.7, v0.1.0-beta.7.1, v0.1.0-beta.7.2, v0.1.0-beta.8, v0.1.0-beta.8.1, v0.1.0-beta.8.2, v0.1.0-beta.9].


  To enable extensions, verify that they are enabled in your .ini files:

    - /www/server/php/72/etc/php.ini

  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

捕获.PNG

解决方案:

1.查看是否安装了扩展fileinfo   如果已经安装了跳转到第二步,否则安装

fileinfo通用扩展用于获取文件MIME,编码等信息!

1.1编译安装:见XXXX

1.2宝塔面板安装,打开php配置,找到安装扩展项fileinfo,点击安装即可,安装完成后重载配置或重启PHP

image.png

2.开启fileinfo扩展,开启后记得重启PHP

找到php.ini文件,打开搜索

 ;extension=fileinfo

去掉前边的;号

 extension=fileinfo

重新执行命令,问题解决!


本文由 奇匠舍资源网 作者:奇匠社资源网 发表,其版权均为 奇匠舍资源网 所有,文章内容系作者个人观点,不代表 奇匠舍资源网 对观点赞同或支持。如需转载,请注明文章来源。
奇匠舍资源网版权声明 1、本网站名称:奇匠舍资源网
2、本站永久网址:http://www.qjshe.com/
3、本网站的资源部分来源于网络,如有侵权,请加QQ群:奇匠舍资源网进行反馈处理。
4、会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。
5、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
6、本站资源大多存储在云盘,如发现链接失效请反馈给我们!我们会第一时间更新。
6
奇匠社资源网

发表评论