Skip to content

Instantly share code, notes, and snippets.

@timvlaer
Created March 21, 2017 12:35
Show Gist options
  • Save timvlaer/721ba30f8fc6a7aac1b0190e132a4261 to your computer and use it in GitHub Desktop.
Save timvlaer/721ba30f8fc6a7aac1b0190e132a4261 to your computer and use it in GitHub Desktop.
Install Thrift 0.9.3 with brew on macOS
brew unlink thrift
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/9d524e4850651cfedd64bc0740f1379b533f607d/Formula/thrift.rb
@goodspb
Copy link

goodspb commented Jul 20, 2021

in 2021, you need to do this:

1、brew unlink thrift
2、brew install thrift@0.9
3、echo 'export PATH="/usr/local/opt/thrift@0.9/bin:$PATH"' >> ~/.zshrc

@annelieselu
Copy link

in 2021, you need to do this:

1、brew unlink thrift
2、brew install thrift@0.9
3、echo 'export PATH="/usr/local/opt/thrift@0.9/bin:$PATH"' >> ~/.zshrc

This will install thrift 0.9.3.1 under usr/local/opt/
If you need thrift under usr/local/bin, do brew link thrift@0.9 (Caution. Check if there is already another version of thrift.)

@shepting
Copy link

shepting commented Jan 2, 2024

I believe this is failing again:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment