Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save siddharthg/6923b2cbb402bd65255af7859a5d52a5 to your computer and use it in GitHub Desktop.
Save siddharthg/6923b2cbb402bd65255af7859a5d52a5 to your computer and use it in GitHub Desktop.
Install Thrift 0.10.0 with brew on macOS
brew unlink thrift
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/16ebe5f1843e6cb54856311ff0f676be53007329/Formula/thrift.rb
@Ramanpreetsingh
Copy link

I tried the above steps but I'm getting this error:
Error: thrift: Unsupported special dependency :python

@hanjk1234
Copy link

Error: thrift: Unsupported special dependency :python +1

@qingdi
Copy link

qingdi commented Oct 25, 2018

Error: thrift: Unsupported special dependency :python +1 too

@qingdi
Copy link

qingdi commented Oct 25, 2018

there is method to fix it
1,depends_on :python => :optional change to depends_on "python@2" => :optional
2,def caveats; <<-EOS.undent change to def caveats; <<-EOS
hope it help

@cartman-kai
Copy link

cartman-kai commented Jul 18, 2019

Update:

Use homebrew-thrift Tap, easy install:

brew tap cartman-kai/thrift
brew install thrift@0.10

https://github.com/cartman-kai/homebrew-thrift


Old soluation:

I solved this problem.

  1. git clone https://github.com/Homebrew/homebrew-core.git , it may be slow, because repo size.
  2. cd homebrew-core and git checkout 16ebe5f1843e6cb54856311ff0f676be53007329 , this commit id is lasted commit before updated to thrift 0.11.0
  3. vim ./Formula/thrift.rb modify this file,in line number 35, change depends_on :python => :optional -> # depends_on :python => :optional or change like @qingdi method.
  4. brew install ./Formula/thrift.rb

other reason: Remove all options from Homebrew/homebrew-core formulae

@BichengWang
Copy link

optional

may i ask
where could I change it

@Kingson4Wu
Copy link

Error: Failed to download resource "thrift_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/thrift/manifests/0.9.3-1

@LearningGuy
Copy link

Error: Failed to download resource "thrift_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/thrift/manifests/0.9.3-1

the same problem when I tried 'brew install ./thrift.rb'

@Eminlin
Copy link

Eminlin commented Jul 12, 2021

Error: Failed to download resource "thrift_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/thrift/manifests/0.9.3-1

the same problem when I tried 'brew install ./thrift.rb'

Error: Failed to download resource "thrift_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/thrift/manifests/0.9.3-1

Homebrew v3.1.0 replaced Bintray with GitHub packages.

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