最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[记录]关于Homebrew和brew,并用brew安装Carthage

Carthage crifan 1723浏览 0评论

在:

[记录]折腾iOS的第三方包管理工具:Carthage

期间,需要用到brew

所以就去看看

brew/README.md at master · Homebrew/brew

brew/FAQ.md at master · Homebrew/brew

homebrew 介绍

Mac开发者利器-Homebrew介绍及安装 – Eric’s Blog – 博客频道 – CSDN.NET

Homebrew的安装与使用 – linfan’s blog

Homebrew — The missing package manager for OS X

去用Homebrew去安装

去看了当前的mac中,是已经安装了brew了的:

licrifandeMacBook-Pro:crifanLib crifan$ br
brctl  break  brew  
licrifandeMacBook-Pro:crifanLib crifan$ brew –version
Homebrew 0.9.5 (git revision 9db5; last commit 2016-01-14)
licrifandeMacBook-Pro:crifanLib crifan$ brew –help
Example usage:
  brew [info | home | options ] [FORMULA…]
  brew install FORMULA…
  brew uninstall FORMULA…
  brew search [foo]
  brew list [FORMULA…]
  brew update
  brew upgrade [FORMULA…]
  brew pin/unpin [FORMULA…]
Troubleshooting:
  brew doctor
  brew install -vd FORMULA
  brew [–env | config]
Brewing:
  brew create [URL [–no-fetch]]
  brew edit [FORMULA…]
Further help:
  man brew
  brew home
licrifandeMacBook-Pro:crifanLib crifan$

Homebrew/brew: The missing package manager for OS X

brew/README.md at master · Homebrew/brew

去更新一下:

licrifandeMacBook-Pro:crifanLib crifan$ brew update
Updated Homebrew from 9db5021 to f0b70e5.
==> Migrating Homebrew to v0.9.9
remote: Counting objects: 247, done.
remote: Compressing objects: 100% (209/209), done.
remote: Total 247 (delta 128), reused 115 (delta 24), pack-reused 0
Receiving objects: 100% (247/247), 425.50 KiB | 97.00 KiB/s, done.
Resolving deltas: 100% (128/128), completed with 127 local objects.
 + f0b70e5…aae4479 master     -> origin/master  (forced update)
HEAD is now at aae4479 formula: deprecate startup_plist.
==> Homebrew has enabled anonymous aggregate user behaviour analytics
Read the analytics documentation (and how to opt-out) here:
==> Tapping homebrew/core
Cloning into ‘/usr/local/Library/Taps/homebrew/homebrew-core’…
remote: Counting objects: 3706, done.
remote: Compressing objects: 100% (3586/3586), done.
remote: Total 3706 (delta 14), reused 2545 (delta 10), pack-reused 0
Receiving objects: 100% (3706/3706), 2.86 MiB | 219.00 KiB/s, done.
Resolving deltas: 100% (14/14), done.
Checking connectivity… done.
Tapped 3583 formulae (3,732 files, 8.9M)
Already up-to-date.

再去安装carthage:

licrifandeMacBook-Pro:crifanLib crifan$ brew install carthage
######################################################################## 100.0%
==> Pouring carthage-0.16.2.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/carthage/0.16.2: 44 files, 11.7M

[总结]

1.如果Mac中没有安装brew,则去参考官网:

http://brew.sh

去Mac下的命令行中安装:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2.Mac下安装Carthage:

brew update

brew install carthage

3.如果brew update出现权限出错,则可以去参考:

[已解决]brew update出错:error: could not lock config file .git/config: Permission denied

转载请注明:在路上 » [记录]关于Homebrew和brew,并用brew安装Carthage

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
91 queries in 0.192 seconds, using 22.25MB memory