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
@bgraban
Copy link

bgraban commented Apr 23, 2020

This is exactly what I needed. Thank you farkwun

@liuyu121
Copy link

hi t try this but it does NOT work :

Error: Calling Non-checksummed download of thrift formula file from an arbitrary URL is disabled! Use 'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.

WHY?

@farkwun
Copy link

farkwun commented Oct 3, 2020

hi t try this but it does NOT work :

Error: Calling Non-checksummed download of thrift formula file from an arbitrary URL is disabled! Use 'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.

WHY?

Right, so, I gave two options - the error message you listed says that they're no longer allowing download of thrift formula files from an arbitrary URL, but the second method doesn't require you to do that.

Doing a git checkout <commit-ID> then running brew install Formula/thrift.rb still totally works.

@sgauri
Copy link

sgauri commented Nov 16, 2020

thrift 0.9.3 commit-id is 9d524e4850651cfedd64bc0740f1379b533f607d

@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