当前位置:   article > 正文

mac os安装thrift避坑指南_thrift@0.9 has been disabled because it is a versi

thrift@0.9 has been disabled because it is a versioned formula!

brew安装

安装0.9.3

brew unlink thrift
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/9d524e4850651cfedd64bc0740f1379b533f607d/Formula/thrift.rb
thrift -version

安装其它版本

git clone git@github.com:Homebrew/homebrew-core.git
cd homebrew-core
git log
进入代码目录,查看0.9.2对应commit,并切换至该commit
git checkout 6ae86d4a56e63c29cc9260cbc340bad71e56bee8
brew install Formula/thrift.rb

上面安装过程中如果出现下面这个错误,不关管,thrift -version有结果就说明安装成功了
Error: thrift: undefined method `cellar’ for #<BottleSpecification:0x00000001058cf360 @rebuild=0, @repository=“/opt/homebrew”, @collector=#<Utils::Bottles::Collector:0x00000001058cf2c0 @tag_specs={}>, @root_url_specs={}>

其它的安装方式以及过时

brew install thrift@0.9

Error: thrift@0.9 has been disabled because it is a versioned formula!

源码安装

各种ruby版本或者依赖版本的兼容性,很难成功的

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/657416
推荐阅读
相关标签
  

闽ICP备14008679号