码迷,mamicode.com
首页 > 系统相关 > 详细

Mac安装composer爬过的坑

时间:2017-05-15 18:29:37      阅读:278      评论:0      收藏:0      [点我收藏+]

标签:bre   update   original   ogr   tap   十分   img   apach   content   

1.首先安装brew
/usr/bin/ruby -e "$(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安装composer
brew install composer
安装的composer可能还不是最新版本的,可以升级一下
composer self-update
可能会报错。代码为:

Error: No available formula with the name "php56-redis" 
==> Searching for a previously deleted formula...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

3.在brew中添加tap

brew tap homebrew/homebrew-php

4.php56-redis 扩展

brew install php56-redis

就能安装成功了,此过程需要一些时间,大概十分钟左右
5.不要忘了重启apache

sudo apachectl restart

6.安装composer
brew install composer
截图:

技术分享

7.验证composer

技术分享

Mac安装composer爬过的坑

标签:bre   update   original   ogr   tap   十分   img   apach   content   

原文地址:http://www.cnblogs.com/aksir/p/6857293.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!