dsvd407787736 2014-06-08 19:26
浏览 95
已采纳

无法安装Laravel Package - 干预图像

So I am following the tutorial on tuts+ Premium from Jeffrey Way - Creating an Ecommerce App in Laravel 4 and I am stuck with this problem. He is installing a package by just editing the composer.json file with this line "intervention/image": "dev-master" and then just types 'composer update' into his console. I try the same but it won't work.

It displays this error

" Problem 1 - intervention/image 2.0.2 requires ext-fileinfo * -> the requested PHP exte nsion fileinfo is missing from your system. - intervention/image 2.0.1 requires ext-fileinfo * -> the requested PHP exte nsion fileinfo is missing from your system. - intervention/image 2.0.0 requires ext-fileinfo * -> the requested PHP exte nsion fileinfo is missing from your system. - Installation request for intervention/image 2.* -> satisfiable by interven tion/image[2.0.0, 2.0.1, 2.0.2]."

I have tried following their instructions on http://image.intervention.io/getting_started/installation but it wouldn't work.

I don't know how to handle this issue. Please help. I also read somewhere that I should edit the php.ini file and uncomment a line for fileinfo but after restarting Apache again it did not work.

I am using Windows 8 with wamp and Laravel.

Any help would be appreciated greatly.

  • 写回答

5条回答 默认 最新

  • dt246813579 2014-06-08 19:56
    关注

    Make sure that, you have php_fileinfo.dll is installed/available in your php\ext folder and also make sure that, the following line is not commented in php.ini file:

    extension=php_fileinfo.dll
    

    If it's commented like this:

    ;extension=php_fileinfo.dll
    

    Then just remove that ; from the beginning of the line and then restart the wamp/apache server.

    Update:

    However, some web servers are confusing because they do not use the php.ini located alongside your PHP executable. To find out where your actual php.ini resides, look for its path in phpinfo():

    After activating an extension, save php.ini, restart the web server and check phpinfo() again. The new extension should now have its own section.

    Also check the Installing a PHP extension on Windows (Resolving problems) on PHP manual.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等
  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥20 测距传感器数据手册i2c