Error while doing `brew tap exolnet/homebrew-deprecated` - homebrew

I want to install php#7.1 on my macbook pro with macos m1. I'm want to perform following steps
brew tap exolnet/homebrew-deprecated
brew install php#7.1
However, I get this error on command brew tap exolnet/homebrew-deprecated.
==> Tapping exolnet/deprecated
Cloning into '/opt/homebrew/Library/Taps/exolnet/homebrew-deprecated'...
remote: Enumerating objects: 98, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 98 (delta 0), reused 1 (delta 0), pack-reused 95
Receiving objects: 100% (98/98), 23.21 KiB | 127.00 KiB/s, done.
Resolving deltas: 100% (46/46), done.
Error: Invalid formula: /opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php#5.6.rb
php#5.6: Calling `sha256 "digest" => :tag` in a bottle block is disabled! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the exolnet/deprecated tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php#5.6.rb:10
Error: Invalid formula: /opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php#7.0.rb
php#7.0: Calling `sha256 "digest" => :tag` in a bottle block is disabled! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the exolnet/deprecated tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php#7.0.rb:10
Error: Invalid formula: /opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php#7.1.rb
php#7.1: Calling `sha256 "digest" => :tag` in a bottle block is disabled! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the exolnet/deprecated tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php#7.1.rb:10
Error: Cannot tap exolnet/deprecated: invalid syntax in tap!
Can anyone suggest me how to fix tihs, or how should I install php 7.1 on mac os m1?

Tap exolnet/homebrew-deprecated is no longer maintained, hence the error.
To install PHP 7.1, first, untap the exolnet/deprecated tap, then you can use the shivammathur/php tap that I maintain and is widely used.
Follow these steps.
HOMEBREW_DEVELOPER=1 brew untap exolnet/deprecated
Tap shivammathur/php
brew tap shivammathur/php
Install and link PHP 7.1
brew install shivammathur/php/php#7.1
brew link --force --overwrite shivammathur/php/php#7.1
Docs: https://github.com/shivammathur/homebrew-php

Related

pypy3 dyld can not be found in homebrew

I got the following error when I use homebrew. Does anybody know how to fix the problem?
dyld: Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib
Referenced from: /usr/local/Cellar/pypy/7.1.1_1/libexec/lib/libpypy-c.dylib
Reason: image not found
Here is the output of brew doctor.
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Some installed formulae were deleted!
You should find replacements for the following formulae:
inchi
python#2
libmpc#0.8
pygtk
isl#0.11
f2c
indigo
mpfr#2
gmp#4
phantomjs
phantomjs
rdkit
casperjs
mumps
ecj
pygobject
isl#0.12
gcc#4.8
gcc#4.8
Warning: Calling a Formula#patches definition is deprecated! Use 'patch do' block calls instead.
Please report this issue to the docmunch/pdftk tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/docmunch/homebrew-pdftk/pdftk.rb:15
Warning: You have the following deprecated, official taps tapped:
Homebrew/homebrew-dupes
Homebrew/homebrew-fuse
Homebrew/homebrew-head-only
Homebrew/homebrew-versions
Homebrew/homebrew-x11
Untap them with `brew untap`.
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.7/bin/python3.7-config
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m-config
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
Warning: Putting non-prefixed coreutils in your path can cause gmp builds to fail.
Warning: Putting non-prefixed findutils in your path can cause python builds to fail.
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libgcc_ext.10.4.dylib
/usr/local/lib/libgcc_ext.10.5.dylib
/usr/local/lib/libgcc_s.10.4.dylib
/usr/local/lib/libgcc_s.10.5.dylib
/usr/local/lib/libgcc_s_x86_64.1.dylib
/usr/local/lib/libgfortran.2.0.0.dylib
/usr/local/lib/libgfortran.3.dylib
/usr/local/lib/libgomp.1.dylib
/usr/local/lib/libpocketsphinx.3.dylib
/usr/local/lib/libpostal.1.dylib
/usr/local/lib/libquadmath.0.dylib
/usr/local/lib/libsphinxad.3.dylib
/usr/local/lib/libsphinxbase.3.dylib
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib
/usr/local/lib/libwkhtmltox.0.12.1.dylib
/usr/local/lib/libwkhtmltox.0.12.2.dylib
/usr/local/lib/libwkhtmltox.0.12.4.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/fakemysql.h
/usr/local/include/fakepq.h
/usr/local/include/fakesql.h
/usr/local/include/itcl.h
/usr/local/include/itcl2TclOO.h
/usr/local/include/itclDecls.h
/usr/local/include/itclInt.h
/usr/local/include/itclIntDecls.h
/usr/local/include/itclMigrate2TclCore.h
/usr/local/include/itclTclIntStubsFcn.h
/usr/local/include/libpostal/libpostal.h
/usr/local/include/mysqlStubs.h
/usr/local/include/node/js_native_api.h
/usr/local/include/node/js_native_api_types.h
/usr/local/include/node/libplatform/libplatform-export.h
/usr/local/include/node/libplatform/libplatform.h
... /usr/local/include/tclPlatDecls.h
/usr/local/include/tclThread.h
/usr/local/include/tclTomMath.h
/usr/local/include/tclTomMathDecls.h
/usr/local/include/tdbc.h
/usr/local/include/tdbcDecls.h
/usr/local/include/tdbcInt.h
/usr/local/include/tk.h
/usr/local/include/tkDecls.h
/usr/local/include/tkPlatDecls.h
/usr/local/include/wkhtmltox/image.h
/usr/local/include/wkhtmltox/pdf.h
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libgfortran.la
/usr/local/lib/libgomp.la
/usr/local/lib/libpocketsphinx.la
/usr/local/lib/libpostal.la
/usr/local/lib/libquadmath.la
/usr/local/lib/libsphinxad.la
/usr/local/lib/libsphinxbase.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/libpostal.pc
/usr/local/lib/pkgconfig/pocketsphinx.pc
/usr/local/lib/pkgconfig/sphinxbase.pc
/usr/local/lib/pkgconfig/tcl.pc
/usr/local/lib/pkgconfig/tk.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libgfortran.a
/usr/local/lib/libgomp.a
/usr/local/lib/libpocketsphinx.a
/usr/local/lib/libpostal.a
/usr/local/lib/libquadmath.a
/usr/local/lib/libsphinxad.a
/usr/local/lib/libsphinxbase.a
/usr/local/lib/libtclstub8.6.a
/usr/local/lib/libtkstub8.6.a
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
inchi
mpich
ssed
python
libmpc#0.8
nss
isl#0.11
numpy
mpfr#2
gmp#4
poppler
nspr
scipy
gcc#4.8
Warning: Some installed formulae are not readable:
indigo: Unsupported special dependency :python
rdkit: Unsupported special dependency :python3
Warning: Your Xcode (10.3) is outdated.
Please update to Xcode 11.3.1 (or delete it).
Xcode can be updated from the App Store.
Warning: Broken symlinks were found. Remove them with `brew cleanup`:
/usr/local/share/man/man5/package-lock.json.5
/usr/local/share/man/man7/removing-npm.7
Warning: Some installed formulae are missing dependencies.
You should `brew install` the missing dependencies:
brew install imlib2 libcaca opusfile
Run `brew missing` for more details.
This is a duplicate of issue 3229 on the PyPy issue tracker. It seems our buildbot is using a brew installed version of libffi. Until we solve this, you should be able to do brew install pypy3. Help from someone who can make the PyPy build look more like the CPython one (which apparently does not have this problem) are welcome.

Checksum error while installing OpenCV via HomeBrew

I am trying to install OpenCV, one of it's dependencies failed to installed with the following error.
==> Downloading https://gitlab.com/gnutls/gnutls/commit/ef80617d1e17e0878a909baad62a75ba265c0e00.patch
######################################################################## 100.0%
Error: An exception occurred within a child process:
ChecksumMismatchError: SHA256 mismatch
Expected: 3b1634fa348c0f0064e43f3fb673e30a5e46f2b51cd6cd0d4a0cbf326e71c90e
Actual: 34480b13120e2167060795060b6738c26622c341498cf6303b17b143642b14cd
Archive: /Users/AX/Library/Caches/Homebrew/downloads/0c113ab0098bc4c3f2e8f410741b6104f2928fe63eb38cf98f8dcc3362f02ac4--ef80617d1e17e0878a909baad62a75ba265c0e00.patch
To retry an incomplete download, remove the file above.
I even removed the file, as suggested but no change.
Ok I sorted it out after google. Perform the following steps:
brew edit gnutls
scroll down to the lines with:
sha256 3b1634fa348c0f0064e43f3fb673e30a5e46f2b51cd6cd0d4a0cbf326e71c90e
Replace with sha256 34480b13120e2167060795060b6738c26622c341498cf6303b17b143642b14cd
Run again.

homebrew tap formula prefer_64_bit not found

I do a tap and give me this error, I update brew and ruby and nothing.
Somebody can help me please?
> brew tap blackfireio/homebrew-blackfire
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Tapping blackfireio/blackfire
Cloning into '/usr/local/Homebrew/Library/Taps/blackfireio/homebrew-blackfire'...
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 23 (delta 15), reused 4 (delta 0), pack-reused 0
Unpacking objects: 100% (23/23), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/blackfireio/homebrew-blackfire/Formula/blackfire-agent.rb
blackfire-agent: undefined method `prefer_64_bit?' for OS::Mac:Module
Error: Cannot tap blackfireio/blackfire: invalid syntax in tap!
I get the same error for a different formula https://github.com/GRASS-GIS/homebrew-grass-dev/issues/6 . I guess something it is a bug in home-brew as it is defined in homebrerw https://www.rubydoc.info/github/Homebrew/brew/OS%2FMac:prefer_64_bit%3F - just started the build again...
It was a bug in home-brew - working again

gpg-agent not found for homebrew

I'm attempting to install gpg-agent, but I am getting an error that the formula doesn't exist:
$ brew install gpg-agent
Error: No available formula with the name "gpg-agent"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
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.
However, it appears that this formula is still active: https://formulae.brew.sh/formula/gpg-agent
Is there something I have configured incorrectly? Other formulas are working as expected (e.g. brew install gpg, brew install pinentry-mac).
In case this information is helpful:
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/fakemysql.h
/usr/local/include/fakepq.h
/usr/local/include/fakesql.h
/usr/local/include/itcl.h
/usr/local/include/itcl2TclOO.h
/usr/local/include/itclDecls.h
/usr/local/include/itclInt.h
/usr/local/include/itclIntDecls.h
/usr/local/include/itclMigrate2TclCore.h
/usr/local/include/itclTclIntStubsFcn.h
/usr/local/include/mysqlStubs.h
/usr/local/include/odbcStubs.h
/usr/local/include/pqStubs.h
/usr/local/include/tcl.h
/usr/local/include/tclDecls.h
/usr/local/include/tclOO.h
/usr/local/include/tclOODecls.h
/usr/local/include/tclPlatDecls.h
/usr/local/include/tclThread.h
/usr/local/include/tclTomMath.h
/usr/local/include/tclTomMathDecls.h
/usr/local/include/tdbc.h
/usr/local/include/tdbcDecls.h
/usr/local/include/tdbcInt.h
/usr/local/include/tk.h
/usr/local/include/tkDecls.h
/usr/local/include/tkPlatDecls.h
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/tcl.pc
/usr/local/lib/pkgconfig/tk.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libtclstub8.6.a
/usr/local/lib/libtkstub8.6.a
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
nmap
Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
$ brew config
HOMEBREW_VERSION: 1.7.5
ORIGIN: https://github.com/Homebrew/brew
HEAD: d639559c4de48faad79d3ecb1ec84dc851ea66f2
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: bd29bc2b97641173dbe4e5ec2a6fe484dfa9dd93
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_GIT: git
CPU: octa-core 64-bit kabylake
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1000
Git: 2.19.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: N/A
macOS: 10.13.6-x86_64
CLT: 9.4.0.0.1.1526532315
Xcode: 10.0
XQuartz: N/A
The gpg-agent formula was removed by commit 965e1. The reason is given in the commit message:
commit 965e130e04e5900e35bf1f0b6ebad9d1c2f680a7
Author: Dominyk Tiller <dominyktiller#gmail.com>
Date: Sun Aug 19 23:07:17 2018 +0100
gpg-agent: delete
Is a redundant formula without `gnupg#2.0` around; `gnupg` >2.1 ships
its own `gpg-agent`.
So if you want gpg-agent install gnupg.

Error on pod setup in new mac

I am trying pod installation and pod setup in my new mac. But I got following issues on terminal. Anybody please could help me ?
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress
Cloning into 'master'...
remote: Counting objects: 2131130, done.
remote: Compressing objects: 100% (503/503), done.
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
There are two ways to do :-
1. It is related to your connections.If your connection isn't proper then you can get this error.So, whenever it happens you should again try to follow the same procedure of installation.
2. I dont think this is a cocoapods library issue.
Try to clone repo manually https://github.com/CocoaPods/Specs and then place it in ~/.cocoapods/repos/master

Resources