doutui6241 2014-04-28 14:24
浏览 93

使用Laravel更新的Mcrypt扩展的最新版MAMP错误

I am getting the usual problem with a composer update in Laravel. I am using the latest MAMP install and it seems to be using the MAMP php. 'which php' returns

php: aliased to /Applications/MAMP/bin/php/php5.5.10/bin/php

However, MAMP's php info does show that mcrypt is running but when I do a composer update it fails on 'composer update'

Generating autoload files
Mcrypt PHP extension required.
Script php artisan clear-compiled handling the post-update-cmd event returned with an error

So no autoload files are being generated. How to fix?

  • 写回答

1条回答 默认 最新

  • drcmg28484 2014-05-07 17:33
    关注

    You can fix this issue by doing the following:

    Open Terminal and run:

    alias php='/Applications/MAMP/bin/php/php5.4.19/bin/php'

    ** Then run **

    php -i | grep mcrypt

    and look for

    mcrypt support => enabled

    Composer should work now...

    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?