【问题标题】:Error when serving Laravel app for the first time首次提供 Laravel 应用程序时出错
【发布时间】:2015-08-06 13:29:11
【问题描述】:

我刚刚通过 composer 安装了 Laravel 5,它已全局安装在我的 Mac 上。现在,当我尝试 laravel new blog 并尝试通过 php artisan serve 在 apache 上提供它时,我收到以下错误

ErrorException in compiled.php line 6635:
Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128'

每次我部署一个新的应用程序时都会得到这个。我该如何解决这个错误?

【问题讨论】:

标签: php laravel


【解决方案1】:

Laravel 5 Installation page 中,您可以看到要求部分,其中指出要使用该框架,您需要安装并启用 Mcrypt 扩展。

Laravel 框架有以下系统要求:

PHP >= 5.4

Mcrypt PHP 扩展

OpenSSL PHP 扩展

Mbstring PHP 扩展

Tokenizer PHP 扩展

您需要安装并启用这些扩展才能使用该框架。

【讨论】:

  • 未安装 Mcrypt。知道了。谢谢:D
猜你喜欢
  • 1970-01-01
  • 2021-02-07
  • 2023-03-28
  • 2021-07-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-10-23
  • 2015-11-26
相关资源
最近更新 更多