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.

它会显示这个错误

" 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]."

我试着按照他们在http://image.intervention.io/getting_started/installation上的指示操作,但不起作用.

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.

我正在使用Windows 8和wamp和Laravel.

Any help would be appreciated greatly.

推荐答案

确保您的php\ext文件夹中已安装/可用php_fileinfo.dll,并确保在php.ini文件中未注释以下行:

extension=php_fileinfo.dll

如果 comments 是这样的:

;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():

激活扩展后,保存php.ini,重新启动web服务器并再次判断phpinfo().新的扩展现在应该有自己的部分.

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

Laravel相关问答推荐

如何避免谷歌翻译翻译:参数

如何在 Laravel 中将 Select 选项表单插入数据库

Laravel 9:AWS S3 检索要流式传输的视频

向 Laravel 模型查询添加计算字段

Laravel 5 Eloquent 范围连接并 Select 特定列

如何为路由 laravel 5 使用OR中间件

使用 Eloquent 的 Laravel 块方法

如何使用 Laravel 模型访问数据库视图?

控制器中的 Laravel Auth 用户 ID

找不到列:1054字段列表中的未知列0-Laravel-我的代码中的任何地方都没有0列

将非框架 PHP 项目移植到 Laravel 4.x

Laravel 5 - Php artisan语法错误

如何在 Laravel 中创建类别的嵌套列表?

在 Laravel 5 中找不到类App\Http\Controllers\Artisan

Laravel 5 与 Postgresql

约定表名(带下划线)

Laravel 5.1-5.8 中以前的路由名称

Laravel 5 - 判断日期是否是今天

Laravel homestead IP地址不起作用

如何在没有日志(log)、没有信息的情况下调试 Laravel 错误 500