引用文章:https://blog.csdn.net/qq_36906627/article/details/104419474
在mac电脑上安装thrift
方法1:通过brew工具安装
步骤1:执行brew install thrift@0.9
步骤2:配置环境变量:首先vim ~/.bash_profile打开文件,添加export PATH=/usr/local/Cellar/thrift@0.9/0.9.3.1/bin:$PATH,然后执行source ~/.bash_profile使环境变量生效
步骤3:校验thrift安装完成
方法2:下载thrift安装包安装,thrift链接:http://archive.apache.org/dist/thrift/
1、wget http://archive.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz
2、tar -zxvf thrift-0.9.3.tar.gz
3、cd thrift-0.9.3
4、./configure
5、make
6、make install
以上在执行 ./configure 时,可能会报错:configure: error: “Error: libcrypto required.”
可以不用管,他不影响下面执行 make & make install,依然可以安装成功。