如果你想安装超过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。

之后进入/usr/bin目录下,将mac默认的bison文件移除掉,将通过brew安装的bison拷贝到这里来。
cd /usr/binsudo mv bison bison111sudo cp /usr/local/Cellar/bison/3.0.4/bin/bison ./
如果你的OX版本过高,会涌现利用sudo权限也无法在/usr/bin目录操作的情形,须要首先获取权限,关闭Rootless。
安装thrift从 官网地址(http://archive.apache.org/dist/thrift/) 下载对应版本,之后依次实行以下命令安装thrift。
tar -zxvf thrift-0.11.0 cd thrift-0.11.0./configure make make install
安装过程中可能会涌现缺点:
安装过程中涌现的缺点
忽略缺点,查看thrift版本号,创造可以正常利用。