关于php_fileinfo.dll


  最近在学习laravel框架,必然要用到强大的composer来下载相关的组件包。今天公司有需要要做图像处理,google了一下找到了intervetion/image这个专门给laravel制作的图像组件,并且同时发现了很多的安装教程。

  安装很简单

1 composer require intervention/image

  其实今天在公司里的时候很顺利的就执行成功了。但是晚上回到家以后想在自己的本本上也下载试一试,结果缺报了以下错误。

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

  Problem 1
    - intervention/image 2.2.2 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.2.1 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.2.0 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - Installation request for intervention/image ^2.2 -> satisfiable by interve
ntion/image[2.2.0, 2.2.1, 2.2.2].

  不难发现,其中反复提到了"PHP extension fileinfo"在系统中没找到,所以直接打开php.ini搜索php_fileinfo,把前面的;去掉就可以了。

  其实这问题刚出的时候就应该直接去php.ini里面查看一下的,但长期习惯了有问题找搜索引擎的思路,碰巧这个问题在搜索引擎里并不太好找。所以写到博客里分享一下,方便后续碰到类似问题的同学们。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM