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

错误的作曲家更新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!

    已采纳该答案
    评论
    解决 无用
    打赏 举报
  • drd43058 2015-09-01 14:13

    The best thing that I can recommend is using Laravel Homestead. It's the best way that I have found to get your thing working. It's as easy as drinking a cup of cold coffee. Homestead comes in with a lots of stuff like:

    • Ubuntu 14.04
    • PHP 5.6
    • HHVM
    • Nginx
    • MySQL
    • Postgres
    • Node (With PM2, Bower, Grunt, and Gulp)
    • Redis
    • Memcached
    • Beanstalkd
    • Laravel Envoy
    • Blackfire Profiler

    And plus you can deploy multiple PHP Sites without managing anything like this.

    Link: http://laravel.com/docs/5.1/homestead

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题