brew install cassandra12 fails on Mac - macos

When I try to install cassandra12 on my Mac using:
brew install cassandra12
It fails with:
Error: No available formula with the name "homebrew/versions/cassandra12"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.
Updating, uninstalling and re-installing brew didn't help either. Can somebody help me with how to fix this issue?
Note: 'brew search cassandra' shows cassandra21 and cassandra22. I need cassandra12 specifically.

Cassandra 1.2 was removed from home-brew versions about a month ago.
zzatking posted the following on the pull request
If anyone really needs a version that was removed due to this pull
request, you can find it by following these steps:
Click the commit above related to your software (e.g. cassandra*)
Find the formula you desire (e.g. cassandra12.rb)
Click "View" for that formula
Click "Raw" for the source
Copy the URL
Run brew install <URL>

Related

Homebrew error while trying to install pyenv

I recently installed Homebrew via terminal, but I get some errors when I try to use it to install other programs.
This is an example situation when I try to install pyenv.
brew install pyenv
This is the output of above command:
Running `brew update --preinstall`...
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...
Error: No formulae found in taps.
Error:
homebrew-cask is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
Error: pyenv: undefined method `cellar' for #<BottleSpecification:0x00007fd7720b4360>
I had the exact same problem.
What solved my issue on macOS Monterey 12.1 was to investigate the problem with brew doctor and then do as the output recommended.
The output of brew doctor informed me that the homebrew/homebrew-core hasn't been tapped properly and recommended the following commands:
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
Then I just continued with Pyenv's installation process and everything worked.

How to install wget on Mac OS

I am trying to install wget on my Mac but when ever I try to install it it says
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "wget".
==> 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 tried to uninstall Homebrew and then re install it but it still doesn't work. Please Help (Also this is my first post so if you have any comments on it please tell me)

Homebrew Portable Ruby Error macOS 10.14.6

Homebrew suddenly stopped working, when i run any brew command i get following output:
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
Already downloaded: /Users/<user>/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
/usr/local/Homebrew/Library/Homebrew/cmd/vendor-install.sh: line 123: /usr/bin/cut: cannot execute binary file
Error: Checksum mismatch.
Expected: b065e5e3783954f3e65d8d3a6377ca51649bfcfa21b356b0dd70490f74c6bd86
Actual:
Archive: /Users/<user>/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
To retry an incomplete download, remove the file above.
Error: Failed to upgrade Homebrew Portable Ruby!
I already tried to remove the file portable-ruby-2.6.3_2.yosemite.bottle.tar.gz but it doesn't work and i couldn't find any helpful information about this error on Google.
Any help is appreciated.
There are several things that I can think of for your situation.
Your output has yosemite identifier, to be clear, MacOS Yosemite is actually 10.10.x, it is not in the current/latest homebrew support list, and also different from 10.14 Mojave in your problem title. So if you are actually using Mojave, you can keep your brew up to date and reinstall ruby.
The latest Ruby formula is actually 2.7.x, you might want to reinstall/upgrade (brew reinstall ruby/brew upgrade ruby).
In all, if you still run into an issue, please attach the outputs of brew config and brew doctor for troubleshooting.
Try brew update-reset and then try brew upgrade.
It's set portable-ruby-2.6.3_2.yosemite.bottle.tar.gz was already downloaded so I removed it and it went through henceforth.

Brew + suite-sparse421

I have installed brew on OSX and I have installed successfully several things.
However when I try to install suite-sparse421 (hard constraint on the version):
brew tap homebrew/versions
brew install suite-sparse421
I get the following error:
Error: No available formula with the name "suite-sparse421"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.
Running brew doctor shows no problem (Your system is ready to brew.)
Running brew update shows no problem (Already up-to-date.)
Any idea?
Have a look at this
https://github.com/Homebrew/homebrew-science/blob/master/suite-sparse.rb
Homebrew-science/suite-sparse.rb has updated it url to download the 4.5.3 package, "http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.5.3.tar.gz"
If you want a specific version , why not download and build on your own.
The commands to build are pretty self explanatory there in the rb script.
As you can see in the error message there’s no formula named suite-sparse421. There’s nothing wrong with your Homebrew installation; it just doesn’t exist. See this other SO answer on how to install a previous version of a formula.
In addition to the previous right answers, the formula suite-sparse421 was removed. And all archived versions of SuiteSparse are listed on the official website.

Tex error occurred while upgrading octave with brew

I first installed octave through brew with the instruction on the office website. One day when I entered brew update && brew upgrade, octave started to upgrade but one error occurred said
You don't have a working TeX binary (tex) installed anywhere in your
PATH, and texi2dvi cannot proceed without one. If you want to use this
script, you'll need to install TeX (if you don't have it) or change
your PATH or TEX environment variable (if you do). See the --help
output for more details.
So I entered brew cask install mactex to install tex and added the Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin to the PATH, when I run tex, it correctly processed:
terminal screenshot
Then I run brew upgrade but the same error occurred again.
I realized that the --without-docs argument may fix this problem but if I want to install docs (since I have already installed tex) what should I do?
I had similar problem while installing another program (not octave) and after looking around I found that I needed to install TeTex (http://www.tug.org/teTeX/) or TexLive, however I decided to install TexLive because TeTex is not mantained anymore...
For me it worked after installing Texlive on the basic configuration. You can follow the instructions over here:
http://www.tug.org/texlive/quickinstall.html

Resources