關於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