Heroku:Mcrypt需要PHP扩展(Ubuntu16上的php7)
我试图在heroku应用程序上推送我的代码。通常它总是有效的,但今天它返回了以下错误: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
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": "*"
和作曲家更新之后