【安装教程】mac安装thrift0.9.2

安装thrift0.9.2

  • 尝试了几种方法,都有各种各样的问题,最终以下面的方法实现了,我觉得算是一种比较好的方式

安装过程

# 下载brew的安装包包,这个里面包含了大量的安装库
git clone  https://github.com/Homebrew/homebrew-core.git  

# 从这个里面找到thrift0.9.2版本
git log Formula/thrift.rb | less  
git checkout  6013399cd95317da4d3eca981967c77d0e091891  

brew install Formula/thrift.rb  
  • 安装出错Error: thrift: undefined method revision' for #<BottleSpecification:0x00007f8f16d50f00>
    • 解决办法:在Formula/thrift.rb当中找到 revision 12修改为rebuild 1
  • 安装出错Error: thrift: Unsupported special dependency :python
    • 解决办法:
      depends_on :python => :optional
      depends_on “python” => :optional

参考文章

  • https://www.iteye.com/blog/decao-2440190
发布了79 篇原创文章 · 获赞 20 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/GodsLeft/article/details/104077577