我试图在heroku应用上推送我的代码。通常它总是有效,但今天它给我发了以下错误:
php artisan clear-compiled
remote: Mcrypt PHP extension required.
remote: Script php artisan clear-compiled handling the post-install-cmd event returned with an error
remote: [RuntimeException]
remote: Error Output:
remote: install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] []...
remote: ! Push rejected, failed to compile PHP app.
remote: ! Push failed
remote: Verifying deploy...
remote: ! Push rejected to dev-forde-hr.
所以我尝试为php7.0安装mcrypt,但它返回我已经安装完所有内容。
我在Ubuntu 16上使用php7,它是一个Laravel 4网络应用程序。
我不知道该怎么做......
答案 0 :(得分:0)
我终于通过将它添加到composer.json来解决了这个问题:
"ext-mcrypt": "*"
之后和作曲家更新