Homebrew error while trying to install pyenv - macos

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.

Related

Home Brew install package getting could not resolve HEAD to a revision

I just installed the latest homebrew with version Homebrew 2.7.3. I have git pre-install on my Mac OS, and I was trying to install brew install git-crypt & brew install git-gui and getting an error on fatal: Could not resolve HEAD to a revision. It looks like it failed on any packages.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "git-crypt".
==> 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 tried uninstall then re-install homebrew using their command line : https://github.com/homebrew/install#uninstall-homebrew
By running brew doctor, I am getting some warnings :
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3-config
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8-config
Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
git -C $(brew --repo homebrew/core) checkout master
I checked this directory
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
and realize there's no Formula folder.
Any help would be appreciate.
I had this error and solved with
git -C $(brew --repo homebrew/core) checkout master

Installing Homebrew + nginx + rtmp in macOS Movaje 10.14

I was able to install Homebrew + nginx + rtmp in macOS High Sierra 10.13. Now I want do the same on macOS Mojave 10.14.
So let's start ... istallation of Homebrew, first we need Xcode in terminal...
xcode-select –install
than. We need homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
than install nginx + rtmp
And here's the problem
I tried:
brew install nginx-full --with-rtmp-module
but it won't work
the result:
Updating Homebrew...
Usage: brew install [options] formula
Install formula. Additional options specific to formula may be appended to the command.
Unless HOMEBREW_NO_INSTALL_CLEANUP is set, brew cleanup will then be run for
the installed formulae or, every 30 days, for all formulae.
-d, --debug If brewing fails, open an interactive
debugging session with access to IRB or a
shell inside the temporary build directory.
--env If std is passed, use the standard build
environment instead of superenv. If super
is passed, use superenv even if the formula
specifies the standard build environment.
--ignore-dependencies An unsupported Homebrew development flag to
skip installing any dependencies of any
kind. If the dependencies are not already
present, the formula will have issues. If
you're not developing Homebrew, consider
adjusting your PATH rather than using this
flag.
--only-dependencies Install the dependencies with specified
options but do not install the formula
itself.
--cc Attempt to compile using the specified
compiler, which should be the name of the
compiler's executable, e.g. gcc-7 for GCC
7. In order to use LLVM's clang, specify
llvm_clang. To use the Apple-provided
clang, specify clang. This option will
only accept compilers that are provided by
Homebrew or bundled with macOS. Please do
not file issues if you encounter errors
while using this option.
-s, --build-from-source Compile formula from source even if a
bottle is provided. Dependencies will still
be installed from bottles if they are
available.
--force-bottle Install from a bottle if it exists for the
current or newest version of macOS, even if
it would not normally be used for
installation.
--include-test Install testing dependencies required to
run brew test formula.
--devel If formula defines it, install the
development version.
--HEAD If formula defines it, install the HEAD
version, aka. master, trunk, unstable.
--fetch-HEAD Fetch the upstream repository to detect if
the HEAD installation of the formula is
outdated. Otherwise, the repository's HEAD
will only be checked for updates when a new
stable or development version has been
released.
--keep-tmp Retain the temporary files created during
installation.
--build-bottle Prepare the formula for eventual bottling
during installation, skipping any
post-install steps.
--bottle-arch Optimise bottles for the specified
architecture rather than the oldest
architecture supported by the version of
macOS the bottles are built on.
-f, --force Install without checking for previously
installed keg-only or non-migrated
versions.
-v, --verbose Print the verification and postinstall
steps.
--display-times Print install times for each formula at the
end of the run.
-i, --interactive Download and patch formula, then open a
shell. This allows the user to run
./configure --help and otherwise
determine how to turn the software package
into a Homebrew package.
-g, --git Create a Git repository, useful for
creating patches to the software.
-h, --help Show this message.
Error: invalid option: --with-rtmp-module
so i tried:
brew install nginx --with-rtmp-module
but.....result:
Updating Homebrew...
Error: No available formula with the name "–with-rtmp-module"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
so I decided to try install nginx first and than rtmp module
brew install nginx
and than i tried:
brew install nginx libnginx-mod-rtmp (copying from Linux)
brew install rtmp-module
brew install module-rtmp
But none of the above worked. How do I resolve it?
You should tap a nginx formulae before try install nginx-full
Well you can try denji/nginx, since homebrew/nginx tap has been deprecated, That's:
brew tap denji/nginx
then
brew install nginx-full --with-rtmp-module
That works for me.

how to install gcc-arm-none-eabi at Mojave MacOS

i'm now using MacOS Mojave.
i want to use gcc-arm-none-eabi for ergodox.
but i cannot install it by brew.
vikke#kosanji:~/vcswork/qmk_firmware
[master]$ brew search gcc-arm-none-eabi
No formula or cask found for "gcc-arm-none-eabi".
Closed pull requests:
gcc-arm-none-eabi 8-2019-q3-update (new formula) (https://github.com/Homebrew/homebrew-core/pull/45780)
gcc-arm-embedded 9-2019-q4-major (new formula) (https://github.com/Homebrew/homebrew-core/pull/46584)
WIP: arm-none-eabi-gcc 8-2018-q4-major (new formula) (https://github.com/Homebrew/homebrew-core/pull/39869)
libelf: remove libelf and dependents (https://github.com/Homebrew/homebrew-core/pull/39871)
libelf 0.8.12 (downgrade to solve linkrot) (https://github.com/Homebrew/homebrew-core/pull/39910)
Revert "Update gcc-arm-embedded to 6-2017-q1" (https://github.com/Homebrew/homebrew-cask/pull/30433)
Update gcc-arm-embedded to 6_2-2016q4,20161216 (https://github.com/Homebrew/homebrew-cask/pull/28143)
arm-none-eabi-gcc 20150921 (new formula) (https://github.com/Homebrew/legacy-homebrew/pull/45236)
Adding recipe for Pebble SDK 2.0-BETA5 (https://github.com/Homebrew/legacy-homebrew/pull/24834)
vikke#kosanji:~/vcswork/qmk_firmware
[master]$ brew install gcc-arm-none-eabi
Error: No available formula with the name "gcc-arm-none-eabi"
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
Error: No similarly named formulae found.
==> Searching taps on GitHub...
==> Searching for similarly named formulae...
==> Searching taps...
Error: No formulae found in taps.
How to do it?
i resolved.
download https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads and install.
If you got here looking for a way to install arm-none-eabi-gcc on macos, use the ARMmbed brew formulae:
brew install armmbed/formulae/arm-none-eabi-gcc
Homebrew does not work all the time. If you are on an older mac it is also likely that your operating system version is no longer supported by Homebrew.
So for people who are not having success with the other answers, Arm provide a proper signed macOS packaged version of the arm-none-eabi-gcc tool chain here
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads

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.

brew install cassandra12 fails on Mac

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>

Resources