Brew Install Trouble - terminal

I'm struggling to brew install minikube. I don't have any version, but need an older version. I'm trying the familiar way, but get an error:
~ brew install minikube#1.18.1
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "minikube#1.18.1".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
I've tried to do a bit of homework, but still errors:
~ brew install https://github.com/Homebrew/homebrew-core/blob/8d37c361ee69503961a3010e7896f6ecf8d3a059/Formula/minikube.rb
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 16 formulae.
Traceback (most recent call last):
`brew extract` or `brew create` and `brew tap-new` to create a formula file in a tap on GitHub instead.: Invalid usage: Non-checksummed download of minikube formula file from an arbitrary URL is unsupported! (UsageError)
`brew extract` or `brew create` and `brew tap-new` to create a formula file in a tap on GitHub instead.: Invalid usage: Non-checksummed download of minikube formula file from an arbitrary URL is unsupported! (UsageError)
This must be elementary, but I can't seem to figure this out :(

$brew update-reset
This helped me with the error.

Brew only does creates separate versions for certain formula, and its mostly only the larger ones where they might provide different versions due to backward compatibility and stuff.
You might have some luck with the answers in this question Homebrew install specific version of formula?.

Before running:
brew install https://github.com/Homebrew/homebrew-core/blob/8d37c361ee69503961a3010e7896f6ecf8d3a059/Formula/minikube.rb
you should execute:
brew unlink minikube
That way you will remove the old minikube links and link the newly installed binary.
If that's still not working than try running:
wget https://github.com/Homebrew/homebrew-core/blob/8d37c361ee69503961a3010e7896f6ecf8d3a059/Formula/minikube.rb
followed by:
brew install --HEAD -s minikube.rb

I think first you can try to run 'brew install minikube' only, see if you can successfully install it or not. If no error then it's probably your version issue. If still has Error then that might be your local home-brew issues, then you can Try to run 'brew doctor', based on the warning and Error info search in stackoverflow you probably will find out the answer.

Related

Can't install TBB using Homebrew on MacOS

I have been trying to install TBB using Homebrew on my MacOS Ventura Hackintosh (AMD) and I have been unable to even install anything using Homebrew. Here's the output of running brew install tbb sam#adsl ~ % brew install tbb Warning: No available formula with the name "tbb". ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching taps on GitHub... Error: No formulae found in taps.
Any tips? Thanks!
Your brew installation seems corrupt.
Run these commands to resolve and fix issue:
% brew update
% brew upgrade
% brew doctor
Doctor can report a number of warnings:
Warning: You have unlinked kegs in your Cellar.
You may wish to link these or uninstall these.
Warning: /usr/bin occurs before /opt/homebrew/bin in your PATH.
You may wish to modify your PATH to put homebrew first.

Boost on OSX via Homebrew

I try to install boost using homebrew, and when i try, this happens:
admin:~ Admin$ brew install boost
Warning: No available formula with the name "boost".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
Specifing version doesnt help either:
```bash
admin:~ Admin$ brew install boost#1.58
Warning: No available formula with the name "boost#1.58".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
you seemed to join a WiiU Homebrew discord for help, but imma still try to help you with your issue.
Does brew install boost#1.79 work for you?
If it still returns the same Issue, please try following things:
brew update after that, try installing boost again.
(Only do if #1 didnt work) brew update-reset
after that try installing boost again.
[Note: this will destroy all your uncommitted or committed changes in any Homebrew repository]
(do this if the other 2 failed) git -C $(brew --repo homebrew/core) checkout -- Formula/boost.rb followed by trying to install boost again.
Hope this helps
Apparently rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core; brew update fixed it!

brew install lua#5.1: "No available formula for the name "Lua#5.1""

Installing Lua#5.1 using brew install lua#5.1 (as stated in the website)
https://formulae.brew.sh/formula/lua#5.1
Results in an error for me on macOs terminal.
brew install lua#5.1
Warning: No available formula with the name "lua#5.1".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
I have used brew update, and I have reinstalled brew, but I still get the same error.
brew install coreutils fixed it for me

Unable to install wget

My MacBook Air was equipped with macOS Mojave Version 10.14.6.
I cannot install wget even if I have checked brew version.
brew --version
The output is :
Homebrew 3.3.13
Homebrew/homebrew-core (no Git repository)
Homebrew/homebrew-cask (git revision fb6ec06d8b; last commit 2022-01-31)
When I tried to install wget:
brew install wget
This is the result:
Warning: No available formula with the name "ca-certificates".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Running `brew update --preinstall`...
Error: No formulae found in taps.
fatal: Could not resolve HEAD to a revision
Warning: No available formula with the name "wget".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
This problem has bothered me for a long while...
Eventually, I solved this problem by running the following code:
brew update-reset
brew install wget
I hoped this may help others.
Problem could be 'Homebrew/homebrew-core not tapped properly'. Executing these two commands resolved the issue for me.
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core

Get error while cask, brew-cask

I want install search engine elasticsearch in OS X 10.11.6
I read some blog
in my command line
brew install elasticsearch
and it show error(needs java)
elasticsearch: Java 1.7+ is required to install this formula.
You can install with Homebrew Cask:
brew install Caskroom/cask/java
You can download from:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.
I flow this blog's solution
brew tap caskroom/cask
and show
Warning: Tap caskroom/cask already tapped.
second command
brew install brew-cask
it show error
Error: No available formula with the name "brew-cask"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
This formula was found in a tap:
Caskroom/cask/brew-cask-completion
To install it, run:
brew install Caskroom/cask/brew-cask-completion
==> You haven't updated Homebrew in a while.
A formula for brew-cask might have been added recently.
Run `brew update` to get the latest Homebrew updates!
and i install java
brew cask install java
but cask doesn't install
==> brew cask install Caskroom/cask/brew-cask-completion
Error: Unknown command: cask
and Some blog give me some advice
brew upgrade brew-cask
it show error
Error: No available formula with the name "brew-cask"
if fact I can't understand why my mac can't find cask...
please somebody helpme
Problem Solved I need to brew update
brew update
Try this works for me.
I thought it's brew update install package command,
brew install --cask java

Resources