Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku:Mcrypt需要PHP扩展(Ubuntu16上的php7)_Php_Heroku_Laravel 4_Ubuntu 16.04 - Fatal编程技术网

Heroku:Mcrypt需要PHP扩展(Ubuntu16上的php7)

Heroku:Mcrypt需要PHP扩展(Ubuntu16上的php7),php,heroku,laravel-4,ubuntu-16.04,Php,Heroku,Laravel 4,Ubuntu 16.04,我试图在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: Er

我试图在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,但它返回的结果是所有内容都已安装

我在Ubuntu16上使用php7,它是一个Laravel4网络应用程序


我不知道还有什么要做…

我最终通过将此添加到composer.json解决了这个问题:

"ext-mcrypt": "*"
和作曲家更新之后