mac os 安装 thrift

brew install bison


xcode会关联一个低版本的bison导致新安装的bison不会被系统找到,


修改.bash_profile

export PATH="/usr/local/Cellar/bison/3.0.4/bin/:/opt/local/bin:/opt/local/sbin:$PATH"




/configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local --without-ruby --without-perl --without-php

还是有各种错误


直接

sudo port install thrift 可以正确安装了

你可能感兴趣的:(linux)