dongwai4434 2013-06-03 13:54 采纳率: 0%
浏览 38
已采纳

Mcrypt扩展不存在

When I try to update my composer for Laravel 4 I run into an issue in my terminal. I keep getting "Laravel requires the Mcrypt PHP extension."

When I double check my installment it shows that my mcrypt is already installed.

Rachaels-MacBook-Pro-2:DRCSports rachaelhill$ brew upgrade mcrypt
Error: mcrypt-2.5.8 already installed
Rachaels-MacBook-Pro-2:DRCSports rachaelhill$ brew upgrade php54-mcrypt
Error: php54-mcrypt-5.4.15 already installed

When research google for similar issues I've found is that it's, because my command line is using a different PHP and I just need to enable mcrypt. So I was advise to fix this was to run in terminal...

/usr/bin/env php --ri mcrypt

But when doing so the output I received was, "Extension 'mcrypt' not present".

I have looked at many similar issues and try to find a way to fix this through google, but I'm clearly just not doing something right. Someone please help, so I can continue on with my project. Thank you!

  • 写回答

5条回答 默认 最新

  • drkxgs9358 2013-06-03 20:56
    关注

    This is the site I used to fix my issue. Even though I had added extension=mcrypt.so to my php.ini I also had to go back and add extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20090626/". The link below will show you step by step,but what I needed was at the very end of it.

    http://www.coolestguyplanettech.com/how-to-install-mcrypt-for-php-on-mac-osx-lion-10-7-development-server/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 (标签-STM32|关键词-智能小车)
  • ¥20 关于#stm32#的问题,请各位专家解答!
  • ¥15 (标签-python)
  • ¥15 第一个已完成,求第二个做法
  • ¥20 搭建awx,试了很多版本都有错
  • ¥15 java corba的客户端该如何指定使用本地某个固定IP去连接服务端?
  • ¥15 activiti工作流问题,求解答
  • ¥15 有人写过RPA后台管理系统么?
  • ¥15 Bioage计算生物学年龄
  • ¥20 如何将FPGA Alveo U50恢复原来出厂设置哇?