douchi0471 2015-09-01 11:53
浏览 57
已采纳

错误的作曲家更新php laravel? (“laravel / framework”:“~5.0”)

I try to run on OSX:

$ composer update

Error:

laravel/framework v5.0.9 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.

.....

Then I try to get ext-mcrypt by:

$ sudo php5enmod mcrypt

From this link

Error: php5enmod: command not found.

Then I fix it by:

$ brew install php5-mcrypt.

Error: No available formula for php5-mcrypt.

So, t try:

  • $ brew install php54-mcrypt --without-homebrew-php (Error: Unsupported PHP API Version).

  • $ brew doctor

  • $ brew install php5-mcrypt.

From this link

But it not work for me.

  • 写回答

2条回答 默认 最新

  • drne47241 2015-09-03 04:39
    关注

    Finally i fix this by other way:

    $ brew tap homebrew/php

    Then:

    $ brew install php54-mcrypt

    if get:

    Error: Formulae found in multiple taps:

    • homebrew/php/php54
    • josegonzalez/php/php54

    Just use: $ brew untap josegonzalez/php

    Reason: josegonzalez/php moved to homebrew/php.

    Thank you!

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

报告相同问题?

悬赏问题

  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流
  • ¥15 Rstudio 保存代码闪退