赞
踩
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={}>
Error: thrift@0.9 has been disabled because it is a versioned formula!
各种ruby版本或者依赖版本的兼容性,很难成功的
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。