Last active
October 14, 2024 17:00
-
-
Save tonydeng/02e571f273d6cce4230dc8d5f394493c to your computer and use it in GitHub Desktop.
Install Thrift 0.11.0 with brew on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
brew unlink thrift | |
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/4ba654c6d99b3b6804dd3843546a9dcbb700188b/Formula/thrift.rb |
Thank you, after testing, this solution is successful on the M1 chip macbook.
atwong@Alberts-MBP Formula % brew unlink thrift
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/4ba654c6d99b3b6804dd3843546a9dcbb700188b/Formula/thrift.rb
Error: No such keg: /opt/homebrew/Cellar/thrift
Error: Installation of thrift from a GitHub commit URL is unsupported! `brew extract thrift` to a stable tap on GitHub instead.
atwong@Alberts-MBP Formula % brew tap-new $USER/local-tap
brew extract --version='0.11.0' thrift $USER/local-tap
brew install [email protected]
Error: /opt/homebrew/Library/Taps/atwong/homebrew-local-tap/README.md already exists
==> Searching repository history
Error: Could not find thrift! The formula or version may not have existed.
Warning: No available formula with the name "[email protected]". Did you mean [email protected]?
==> Searching for similarly named formulae and casks...
==> Formulae
[email protected]
To install [email protected], run:
brew install [email protected]
atwong@Alberts-MBP Formula % brew unlink thrift
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/4ba654c6d99b3b6804dd3843546a9dcbb700188b/Formula/thrift.rb
Error: No such keg: /opt/homebrew/Cellar/thrift
Error: Installation of thrift from a GitHub commit URL is unsupported! `brew extract thrift` to a stable tap on GitHub instead.
atwong@Alberts-MBP ~ % brew --version
Homebrew 4.0.22
atwong@Alberts-MBP ~ % brew unlink thrift
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/4ba654c6d99b3b6804dd3843546a9dcbb700188b/Formula/thrift.rb
@mrioan
Error: No such keg: /opt/homebrew/Cellar/thrift
Error: Installation of thrift from a GitHub commit URL is unsupported! `brew extract thrift` to a stable tap on GitHub instead.
zsh: command not found: @mrioan
just FYI.... homebrew told me to make my own homebrew of which I'm using thrift 0.13 https://github.com/alberttwong/homebrew-thrift
Worked for me:
brew unlink thrift
brew tap homebrew/core
brew tap-new $USER/local-tap
brew extract --version='0.11.0' thrift $USER/local-tap
sed -i '' 's|https://www.apache.org/dyn/closer.cgi?path=/thrift/0.11.0/thrift-0.11.0.tar.gz|https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz|' /opt/homebrew/Library/Taps/$USER/homebrew-local-tap/Formula/[email protected]
brew install [email protected]
Hi, when I run
brew extract --version='0.11.0' thrift $USER/local-tap
I get:
No available formula with the name "homebrew/core/thrift".
What could be the reason?
getting same issue as you @Jap8nted
made my own fork of @alberttwong 's repo to install thrift 0.18.1 successfully. https://github.com/tommy-mor/homebrew-thrift
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks to @tmsblgh that works!