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

dongqiuwei8667
dongqiuwei8667 谢谢。它对我有用!
大约 5 年之前 回复
douxian0008
douxian0008 也许这会有所帮助:stackoverflow.com/questions/28546217/...
大约 5 年之前 回复
dongzhuo1880
dongzhuo1880 aryo.lecture.ub.ac.id/...
大约 5 年之前 回复

2个回答



最后我通过其他方式修复此问题:</ p>

$ brew tap homebrew / php </ strong> </ p>

然后:</ p>

$ brew install php54-mcrypt </ strong> </ p>

< p> if get:</ p>

错误</ em>:多次点击中找到的公式:</ p>


  • homebrew / php / php54 </ li>
  • josegonzalez / php / php54 </ li>
    </ ul>

    只需使用: $ brew untap josegonzalez / php </ strong> < / p>

    原因:josegonzalez / php转移到homebrew / php。</ p>

    谢谢!</ p>
    </ div>

展开原文

原文

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!



我可以推荐的最好的事情是使用Laravel Homestead。 这是我发现让你的事情发挥作用的最佳方式。 这就像喝一杯冷咖啡一样简单。 Homestead提供了许多类似的东西:</ p>


  • Ubuntu 14.04 </ li>
  • PHP 5.6 </ li>
  • HHVM < / li>
  • Nginx </ li>
  • MySQL </ li>
  • Postgres </ li>
  • 节点(使用PM2,Bower,Grunt和Gulp) </ li>
  • Redis </ li>
  • Memcached </ li>
  • Beanstalkd </ li>
  • Laravel Envoy </ li>
  • Blackfire Profiler </ li>
    </ ul>

    此外,您可以部署多个PHP站点而无需管理此类内容。</ p>

    链接: http://laravel.com/docs/5.1/homestead </ p>
    </ div>

展开原文

原文

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

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问