文章目录
- mac 安装 thrift
- thrift 配置环境变量
mac 安装 thrift
使用 mac 的 brew 安装 thrift
# 查看 brew 能否查询到是否有安装了 thrif brew info thrift brew info thrift@0.9 # 通过 brew 查看 thrift 文件路径 brew list thrift brew list thrift@0.9 # 若没有安装 thrift 可以安装,以 0.9 版本举例 brew install thrift@0.9 # 然后我们再看下文件路径 brew list thrift@0.9thrift 配置环境变量
配置环境变量
# vim 操作 ~/.bash_profile # 在 ~/.bash_profile 填写 thrift 的环境变量配置 # THRIFT_HOME THRIFT_HOME="/usr/local/Cellar/thrift@0.9/0.9.3.1" PATH=$THRIFT_HOME/bin:$PATH export THRIFT_HOME export PATH # 然后 vim 操作保存 # 刷新一遍 source ~/.bash_profile