我的作曲家不会完全用 Laravel 4 更新它会被工匠卡住
问题描述
这是我得到的错误:
这显示在:
我尝试删除供应商文件夹中的所有文件夹.但这并没有改变什么.
I tried to delete all my folders in my vendor folder. But that did not change anything.
我在我的 Mac OS X 上使用 MAMP 服务器.
I am using MAMP server on my Mac OS X.
PHP 版本 5.4.10
PHP Version 5.4.10
mcrypt 2.5.8
mcrypt 2.5.8
我刚刚尝试了sudo composer update --verbose",我得到了这个错误:
I just tried "sudo composer update --verbose" and I got this error:
这是我在 PHP 错误日志中发现的错误:
Here is the error I found in my PHP error logs:
我只是想测试我的作曲家:
I just tried to test my composer:
刚刚在最后一个命令的错误消息中应用了建议.现在一切正常.
Just applied the recommendation in the error message from the last command. Now everything is showing as OK.
我刚试过这个:
我的 PHP 错误日志中出现了新错误:
I am now getting new errors in my PHP Error logs:
推荐答案
我相信这个错误是由于找不到 mcrypt
造成的.
I believe this error results from not being able to find mcrypt
.
脚本 php artisan 优化处理返回错误的 post-update-cmd 事件
Script php artisan optimize handling the post-update-cmd event returned with an error
显然安装mcrypt
并不是那么容易.
Apparently it is not quite that easy to install mcrypt
.
安装
php5-mcrypt
包,或验证是否安装正确.
Install the
php5-mcrypt
package, or verify that it has been installed correctly.
检查mcrypt
是否已安装并启用PHP:
Check whether mcrypt
has been installed and enabled for PHP:
如果它说:你就完成了:
You're done if it says:
否则,如果显示:
验证 mcrypt.ini
是否存在于 PHP 的 mods-available
目录中.
Verify that mcrypt.ini
is present in PHP's mods-available
directory.
如果显示 No such file or directory
,则创建一个从 mcrypt.ini
到 PHP 的 mods-available
目录的符号链接.
If it says No such file or directory
, create a symbolic link from mcrypt.ini
to PHP's mods-available
directory.
启用模组.
Enable the mod.
重启apache.
Restart apache.
再次检查mcrypt
是否开启.
最后的步骤受到 Vuk Stanković 的启发.
The final steps were inspired by Vuk Stanković.
这篇关于我的作曲家不会完全用 Laravel 4 更新它会被工匠卡住的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!