尝试创建新的laravel应用程序时,我继续收到此错误。使用未定义的常量MCRYPT_RIJNDAEL_128

时间:2015-06-05 21:17:50

标签: laravel mcrypt

起初我只是通过在终端输入“Laravel”来获取MCRYPT错误,所以我安装了php和MCRYPT与自制程序,现在当我进入“Laravel”时,一切运行顺利。

现在,当我尝试创建新应用时,我收到此错误。

Crafting application...

Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed     'MCRYPT_RIJNDAEL_128' in /Users/alexcruz/Code/site/config/app.php on line 83
PHP Notice:  Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /Users/alexcruz/Code/site/config/app.php on line 83

Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /Users/alexcruz/Code/site/config/app.php on line 83
PHP Notice:  Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /Users/alexcruz/Code/site/config/app.php on line 83
Generating optimized class loader
Compiling common classes

Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /Users/alexcruz/Code/site/config/app.php on line 83
PHP Notice:  Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /Users/alexcruz/Code/site/config/app.php on line 83
Application key [uDNikuCU10cKrt18r5TjC21RWMiaprNT] set successfully.
Application ready! Build something amazing.

我还安装了Macport,

sudo port install php55-mcrypt

sudo port install php54-mcrypt

将扩展名添加到php.ini文件的末尾 延长= /选择/本地/ LIB / php55 /扩展/无调试非ZTS-20121212 / mcrypt.so

sudo apachectl restart

我尝试了很多不同的东西。我已经谷歌错误,并试图效仿其他人的例子,但没有成功。

我在运行优胜美地的Mac上。

谢谢

0 个答案:

没有答案