brew install certbot -> No available formula - homebrew

Every Let's Encrypt tutorial starts with installing certbot:
brew install certbot
When I do this, I get a:
Error: No available formula for certbot
So what is wrong?

The first thing to do when you get a No available formula for X is to run brew update and try again. A few months ago Homebrew got an auto-update feature that should reduce these kind of errors.

Related

Return to dbt version 19.1

I am not sure how badly I have hosed this. I updated dbt to v20 globally too soon. I did uninstall v20. I need to return the project to version 19.1. I am running into errors doing this. As background I am running a virtual. I am on macos.
These two commands work as expected:
brew tap dbt-labs/dbt
brew unlink dbt
Then I run brew install dbt-labs/dbt/dbt#0.19.1
I get (I expect this) Warning: dbt-labs/dbt/dbt#0.19.1 0.19.1_1 is already installed, it's just not linked. To link this version, run: brew link dbt#0.19.1
Then I run brew link dbt#0.19.1 or brew link dbt-labs/dbt/dbt#0.19.1 and I get:
Error: Formulae found in multiple taps:
* dbt-labs/dbt/dbt#0.12.2-rc1
* fishtown-analytics/dbt/dbt#0.12.2-rc1
Please use the fully-qualified name (e.g. dbt-labs/dbt/dbt#0.12.2-rc1) to refer to the formula.
So I try brew link dbt-labs/dbt/dbt#0.12.2-rc1
Disclosure...I code dbt modules but I do not get too far into the installation since I rarely need to do it. Any help would be highly appreciated.
You might find this issue in the dbt-labs/dbt repo helpful.
TL;DR:
You may be running into issues due to the repo name change. It could help to do a full re-install, i.e.:
brew untap fishtown-analytics/dbt --force
brew tap dbt-labs/dbt
brew install dbt#x.y.z
You can then follow the instructions here as normal for managing several versions with homebrew.

Error during installation of giter8 using Home-brew

I've been trying to install giter8 using brew, like so:
brew install giter8
I get the following error:
Error: giter8 has been disabled because it fetches unversioned dependencies at runtime!
Does anybody know how to fix this, or what workarounds are available. Thank you!
This worked as a workaround for me. No idea if that's the proper fix
Edit the brew formula for giter8:
brew edit giter8
and delete this line
disable! because: "fetches unversioned dependencies at runtime"
The default editor will be vim -- put cursor at that line and hit dd to delete then type :x to save and exit
then re-run brew install giter8 and you should be good
You can create giter8 projects with SBT directly and don't need to install giter8 via Homebrew anymore. sbt new scala/scala-seed.g8 is the example in the docs.
This thread has another workaround (#alexroussos solution also works).
Install giter8
brew install --build-from-source giter8

brew doctor Error: "No available formula with the name "pkg-config" "

I just installed Homebrew on Windows using the Linux Bash Shell but I have this error when I run brew doctor :
Error: No available formula with the name "pkg-config"
what can i do?
First, update Homebrew so it is pulling from the right resources: brew update
Run brew doctor again.
If the same error occurs, try doing a brew search pkg-config and see which results come up. I've had cases where the path to the package was different than usual. Pick one of the search results, and then do a brew install with the package path from the search results: brew install /homebrew/searchresultpath/pkg-config
Hopefully the correct path for the extension will solve your problem.

Error when installing PHP70 with Homebrew

When I try to install PHP7 with Homebrew I get this error
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)
The output of /usr/sbin/apxs follows:
apxs:Error: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/apr-1-config not found!.
configure: error: Aborting
And the command I've used to install it is :
brew install homebrew/php/php70
Here's a screenshot of my terminal:
Terminal Screen shot
Does any one have a solution for this, knowing that I've searching the web for a solution without any luck
Try this if you're upgrading:
brew reinstall php70 --without-apache
otherwise if you're installing php70 for the first time, try the following::
brew install home-brew/php/php70 --without-apache
Faced a similar issue, found it under this GitHub issue: https://github.com/Homebrew/homebrew-php/issues/3283

Error: SHA1 mismatch, while installing openni2

I'm trying to install OpenNI2 with Homebrew, but midway I ran into this common issue "Error: SHA1 mismatch"
I tried the solution from another question that resembled this like
SHA1 error when using brew installs's brew update ; however it's already updated
I also did try to remove, as it instructed, the listed archive but I ran into the same problem.
running brew doctor didn't seem to give a good hint on a resolution.
Preq.
$ brew tap homebrew/science
$ brew tap totakke/openni2
Action
$ brew install openni2
Output
==> Downloading https://github.com/occipital/OpenNI2/archive/2.2-beta2.tar.gz
######################################################################## 100.0%
==> Downloading https://github.com/occipital/OpenNI2/pull/18.patch
######################################################################## 100.0%
Error: SHA1 mismatch
Expected: e0be30b6b9296939306155580df1ac7912d3f949
Actual: 4beb04a31a64677618801f0e95141807592442ef
Archive: /Library/Caches/Homebrew/openni2--patch-e0be30b6b9296939306155580df1ac7912d3f949.patch
To retry an incomplete download, remove the file above.
reference
The cause is hash mismatch of the patch file.
OpenNI2 formula is currently hosted by homebrew-science.
It's a homebrew-science problem.
Alternative solution is editting the formula by yourself.
$ brew edit openni2
- sha1 "e0be30b6b9296939306155580df1ac7912d3f949"
+ sha1 "4beb04a31a64677618801f0e95141807592442ef"
Thanks Takeuchi!
This means that the patch has changed since the formula was written. You should make sure that the patch has not been changed maliciously. If you trust the patch, you can run brew edit openni2 to edit the formula, remove the sha1 line corresponding to the patch, save the formula, and try again.

Resources