Mac 办公软件装机指南
Git & github
https://www.jianshu.com/p/3fc93c16ad2d
jdk
typora
iterm
https://www.jianshu.com/p/405956cdaca6
brew
如果你是初次安装,并且需要换其他源
脚本默认内置中科大镜像,如果需要换源,请使用小助手获取安装脚本:
镜像:中科大 平台:macOS 终端类型:zsh
1 | # 1.执行安装脚本 |
如果你已经安装过,需要换源
选择”镜像”、”平台”、”终端类型”后,会自动生成对应的设置镜像脚本。
镜像:中科大 平台:macOS 终端类型:zsh
1 | # 脚本 |
brew update 卡死问题
1)更新git源
1 | 更新Homebrew |
2)设置环境变量
zsh环境下:
1 | echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/' >> ~/.zshrc |
bash环境下:
1 | echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/' >> ~/.bash_profile |
3)更新brew
1 | brew update -v |
brew install 总出现 No similarly named formulae found 问题
1 | git -C $(brew --repository homebrew/core) checkout master |
参考链接:
参考:https://brew.idayer.com/guide/change-source/
https://blog.csdn.net/danfengw/article/details/114362560
Alfred
Thrift
使用brew在线安装
① 查看thrift的最新版本
1 | ① 查看thrift的最新版本 |
② 卸载旧版本
1 | brew uninstall thrift |
③ 安装thrift依赖包
1 | brew install boost openssl libevent bison |
④ 安装最新版thrift
1 | brew install thrift |
⑤ 安装指定版本的thrift
注意提示中的内容。
1 | brew install thrift@0.9 |
如果你想安装超过
0.9.3
的版本,那么你需要检查一下bison
的版本,因为如果你的bison版本低于2.5
,在安装thrift的时候会报错.configure: error: Bison version 2.5 or higher must be installed on the system!执行:
bison -V
查看版本,如果低于2.5则进行以下操作.执行:
brew install bison
安装最新版本的bison.
1 | brew reinstall bison |
下载tar包离线安装
官网下载需要的包:http://archive.apache.org/dist/thrift/
安装命令:
1 | tar -zxvf thrift-0.11.0 |
本文链接: https://stefanxiepj.github.io/archives/1c1ededa.html
版权声明: 本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可。转载请注明出处!
![知识共享许可协议](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)