mac install brew

最近刚把开发平台从windows迁移到Mac,发现有些东西也是需要根据自己需要安装的,所以搜了下,发现网上各路大神推荐brew,看完介绍,感觉不错,搞起安装(这里说下心得,在Mac app store中有很多常用的软件都找不到,例如大名鼎鼎的eclipse,sublime
text等,其实是个人想的太狭隘了,以为在Mac上的安装的软件都是要从app store中下载,其实不然,有网友这样说:在Mac app store中发布软件不是不要钱的,开发者需要花一年几百块去开发软件的,当然,你可以光是开发,只是不能在app
store中发布,所以有些人不想发布在app store上,花钱用处不大,还不如直接发布在网上不是更好吗)。

1、Homebrew 是 OS X 的包管理工具,Ruby 社区的作品,功能类似 Ubuntu
下的apt-get。

2、在百度搜索时会返回很多在Mac terminal中安装的脚本,虽然看似都很相像,但基本上在安装时都会出现错误,可能是在网友在回答后,homebrew官方更新了安装脚本,所以在安装brew时推荐从官方copy安装脚本,官方网站如下:http://brew.sh/index_zh-cn.html。

3、拷贝到Mac terminal后,回车安装(重要节点高亮显示):

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

==>This script will install:

/usr/local/bin/brew

/usr/local/Library/...

/usr/local/share/man/man1/brew.1

Press RETURN to continue or any other key to abort

==>Downloading and installing Homebrew...

remote: Counting objects: 3693, done.

remote: Compressing objects: 100% (3525/3525), done.

remote: Total 3693 (delta 38), reused 527 (delta 27), pack-reused 0

Receiving objects: 100% (3693/3693), 3.04 MiB | 79.00 KiB/s, done.

Resolving deltas: 100% (38/38), done.

From https://github.com/Homebrew/homebrew

* [new branch]      master     -> origin/master

HEAD is now at 9c41fb8 update man page

==>Installation successful!

==> Next steps

Run `brew help` to get started

4、到目前为止已成功安装homebrew,在terminal中验证一下,输入: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...]

https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md

Further help:

man brew

brew home

成功安装,收工~

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-10-07 08:05:05

mac install brew的相关文章

mac安装brew 软件包管理工具Homebrew

mac 安装 brew  Homebrew brew 全称Homebrew  是Mac OSX上的软件包管理工具 Homebrew 安装和卸载工具 只用一行命令就能完成 官方地址:    http://brew.sh/index.html mac 自带ruby 打开命令行  terminal 输入  : ruby -version 1) 安装命令 ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)&

Mac安装brew及其使用方法

Mac 安装 brew 及其使用方法: 安装brew: curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1 卸载brew: cd `brew --prefix` rm -rf Cellar brew prune rm `git ls-files` rm -r Library/Homebrew Library/Aliases Library/Formula L

mac install m2Crypto

mac install m2Crypto error SWIG/_m2crypto.i:43: Error: Unable to find 'openssl/opensslv.h' SWIG/_m2crypto.i:49: Error: Unable to find 'openssl/safestack.h' SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h' SWIG/_rc4.i:5: Error: Unable to

mac 安装brew mac安装expect mac一键登录服务器脚本

mac 安装brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" mac安装expect(需要先安装brew,没有安装的话看上边) brew install expect mac一键登录服务器脚本 set user "zhaohh" set host "123.126.105.34" set p

MAC 更新brew 镜像源

mac 更新brew镜像源 cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin git://mirrors.ustc.edu.cn/homebrew-core.git echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profil

mac使用brew安装mysql报RROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

使用mac安装mysql安装完后运行 mysql -uroot -p 报了 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 这是由于我们没有启动mysql,启动mysql使用 brew services start mysql或者 mysql.server start 在启动前我们可以设置一下root密码 mysql_secure_installation 然

mac install PyQt5

1. install brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2. install python3 brew install python3 brew info python3python3 -V 3. install sip & pyqt5 pip3 install sip pip3 install pyqt

Mac环境brew安装

curl -L https://get.rvm.io | bash -s stable //RVM安装 source ~/.rvm/scripts/rvm rvm -v //版本检测  rvm list known //列出已知的ruby版本 rvm install 2.0.0 // install version rvm list rvm remove 1.9.2 rvm 2.0.0 --default //设置默认的版本 gem -v ------------ 国内网络墙的限制-------

mac install telnet

问题: -bash: telnet: command not found -bash: brew: command not found 解决: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install telnet 参考: brew: command not found 转:https://blog.csdn.net/u0