gpg-agent not found for homebrew - 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.

Related

Rails 7, vips on M1 MacBook Air

I'm unable to use Rails 7.0.3.1 with vips on an M1 MacBook Air due to the error:
rails aborted!
LoadError: Could not open library 'glib-2.0.0': dlopen(glib-2.0.0, 0x0005): tried: 'glib-2.0.0' (no such file), '/usr/local/lib/glib-2.0.0' (no such file), '/usr/lib/glib-2.0.0' (no such file), '/Users/brody/Code/tms.next-tms.com.wip2/glib-2.0.0' (no such file).
Could not open library '/opt/local/lib/libglib-2.0.0.dylib': dlopen(/opt/local/lib/libglib-2.0.0.dylib, 0x0005): tried: '/opt/local/lib/libglib-2.0.0.dylib' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
I'm using ffi 1.15.1 and can see it searching correctly in /opt/local/lib, but the homebrew package builds binaries for x86_64 rather than arm64e even while using the --build-from-source option (brew install vips --build-from-source).
Has anyone got this working?
I ran into the same issue (with libglib-2.0.0) but then I figured that brew poured glib--2.74.5.arm64_monterey.bottle so why does it find 2.0.0? In my case it was (a dated version of) Navicat linking an old glib
~$ ls -l /usr/local/lib/libglib*
0 lrwxr-xr-x 1 chaos staff 73B Dec 11 11:23 /usr/local/lib/libglib-2.0.0.dylib -> /Applications/Navicat Premium.app/Contents/Frameworks/libglib-2.0.0.dylib
This wasn't the only file however, Navicat linked a total of 71 dylib files. I removed all those symlinks and then the error disappeared

brew update fails at PHP7.4 step

Looking for help with a failing brew upgrade.
I'm running macOS Monterey version 12.4 on a MacStudio system. I've been running homebrew applications (notably php7.4) for a good while now. I noticed that it reported that 30 packages could be updated, so I ran:
brew update
brew upgrade
The upgrade step failed with (excerpts from log shown here):
Warning: php#7.4 has been deprecated because it is a versioned formula!
Warning: Building httpd from source as the bottle needs:
- HOMEBREW_CELLAR: /opt/homebrew/Cellar (yours is /Volumes/Satechi.SSD.M2/homebrew/Cellar)
- HOMEBREW_PREFIX: /opt/homebrew (yours is /Volumes/Satechi.SSD.M2/homebrew)
==> Downloading https://dlcdn.apache.org/httpd/httpd-2.4.54.tar.bz2
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/0630b06c782baa4fd4809e1322ebb1439d78dfa0cde375669da966f5da5718cd--httpd-2.4.54.tar.bz2
==> Installing php#7.4 dependency: httpd
==> ./configure --enable-layout=Slackware-FHS --prefix=/Volumes/Satechi.SSD.M2/homebrew/Cellar/httpd/2.4.54 --sbindir=/Volumes/Satechi.SSD.M2/homebrew/Cellar/httpd/2.4.54/bin --mandir=/Volumes/Satechi.SSD.M2/homebrew/Cellar/httpd/2.4.54/share/man --sysconfdir=/Volumes/Satechi.SSD.M2/homebrew/etc/httpd --datadir=/Volum
==> make
==> make install
Error: An exception occurred within a child process:
Utils::Inreplace::Error: inreplace failed
/Volumes/Satechi.SSD.M2/homebrew/Cellar/httpd/2.4.54/lib/httpd/build/config_vars.mk:
expected replacement of #<Pathname:/Volumes/Satechi.SSD.M2/homebrew/Cellar/pcre2/10.40> with #<Pathname:/Volumes/Satechi.SSD.M2/homebrew/opt/pcre2>
The things I notice here that might be related to the problem, are the fact a specific version of PHP (7.4) was installed (I must keep this version)... and a vague mention of my unusual path.
Since it may be related: before I installed brew, ran these commands in an effort to minimize the use of the precious .5TB primary drive:
mkdir /Volumes/Satechi.SSD.M2/homebrew/
ln -fs /Volumes/Satechi.SSD.M2/homebrew/ /opt/homebrew
ln -fs /Volumes/Satechi.SSD.M2/homebrew /homebrew # (I no longer remember why I created this link - except that it was to solve some forgotten problem)
So my brew home is technically not in the same filesystem as opt, but the default path to brew's folders (/opt/homebrew/*) continues to work. This is what I want, and it's been working for a few months. Not sure this is related to the problem but I thought I'd point it out in case.
The full output of brew upgrade is:
dennis#macstudio:/opt/homebrew 07/05 07:49:56
> brew update
Already up-to-date.
dennis#macstudio:/opt/homebrew 07/05 07:50:02
> brew upgrade
==> Upgrading 30 outdated packages:
libtiff 4.3.0 -> 4.4.0
ffmpeg 5.0.1 -> 5.0.1_3
nettle 3.7.3 -> 3.8
freetype 2.12.0 -> 2.12.1
openjpeg 2.4.0 -> 2.5.0
speex 1.2.0 -> 1.2.1
harfbuzz 4.2.1 -> 4.3.0
glib 2.72.1 -> 2.72.2
libxcb 1.14_2 -> 1.15
aom 3.3.0 -> 3.4.0
srt 1.4.4 -> 1.5.0
unixodbc 2.3.9_1 -> 2.3.11
ninja 1.10.2_1 -> 1.11.0
meson 0.62.1 -> 0.63.0
curl 7.83.0 -> 7.84.0
php#7.4 7.4.29 -> 7.4.30
krb5 1.19.3 -> 1.20
libvpx 1.11.0 -> 1.12.0
freetds 1.3.10 -> 1.3.12
dav1d 0.9.2 -> 1.0.0
libpq 14.2 -> 14.4
oniguruma 6.9.7.1 -> 6.9.8
x264 r3060 -> r3095
unbound 1.15.0 -> 1.16.0
libzip 1.8.0_1 -> 1.9.2
openldap 2.6.1 -> 2.6.2
libass 0.15.2 -> 0.16.0
libx11 1.7.5 -> 1.8.1
python#3.9 3.9.12 -> 3.9.13_1
gnutls 3.7.4 -> 3.7.6
Warning: Building openldap from source as the bottle needs:
- HOMEBREW_CELLAR: /opt/homebrew/Cellar (yours is /Volumes/Satechi.SSD.M2/homebrew/Cellar)
- HOMEBREW_PREFIX: /opt/homebrew (yours is /Volumes/Satechi.SSD.M2/homebrew)
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-big_sur.diff
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/195208ba31cadc265ea97bb8aad4e78caab1200daf4d855e6c839b5f987f92db--configure-big_sur.diff
==> Downloading https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.6.2.tgz
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/9e06aa4612038dd6b4686ef4e738b0853be6cca0bcd7b673c7f8d436c4731162--openldap-2.6.2.tgz
==> Downloading https://ghcr.io/v2/homebrew/core/curl/manifests/7.84.0
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/a65075db232ffcd42c8fbf1258bbd0fc1a8b6affe5f8b4eba2a880127e336f48--curl-7.84.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/curl/blobs/sha256:00b2bfb12b8fd68992872941d19f8c38971cfb7f6c34fe72ebb014b8110ebc07
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/12b262a44d04f8246b961c8b41690618bde0c3e912025ae860b5cca763160812--curl--7.84.0.arm64_monterey.bottle.tar.gz
Warning: Building unixodbc from source as the bottle needs:
- HOMEBREW_CELLAR: /opt/homebrew/Cellar (yours is /Volumes/Satechi.SSD.M2/homebrew/Cellar)
- HOMEBREW_PREFIX: /opt/homebrew (yours is /Volumes/Satechi.SSD.M2/homebrew)
==> Downloading http://www.unixodbc.org/unixODBC-2.3.11.tar.gz
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/01fd783738abfafd6c8cec4df80068e73cf5ff4aea30c8e2c71767de6678f8e4--unixODBC-2.3.11.tar.gz
Warning: Building freetds from source as the bottle needs:
- HOMEBREW_CELLAR: /opt/homebrew/Cellar (yours is /Volumes/Satechi.SSD.M2/homebrew/Cellar)
- HOMEBREW_PREFIX: /opt/homebrew (yours is /Volumes/Satechi.SSD.M2/homebrew)
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-big_sur.diff
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/195208ba31cadc265ea97bb8aad4e78caab1200daf4d855e6c839b5f987f92db--configure-big_sur.diff
==> Downloading https://www.freetds.org/files/stable/freetds-1.3.12.tar.bz2
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/c17aff1bdcced723dd942325b7e7e96b7c1e70b5dc7e889514036b2b9821272d--freetds-1.3.12.tar.bz2
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/manifests/2.12.1
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/908428437764929aa268ec3967d2d4c58d2c0cdcb971555c98cd45ab6b7e3368--freetype-2.12.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/blobs/sha256:3e190f2fa02702aa86e46cf33e7dde1d93e879f1de38f3d1b61e301f8367136d
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/047bc186da41bb1af4be21bed67fd89fc1402bc8e893c48fcc39633181777ffe--freetype--2.12.1.arm64_monterey.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/libtiff/manifests/4.4.0
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/b37cf6c170f1c01d5757e2494de5d65c9b117306a86f9e29f28e57b1a9972191--libtiff-4.4.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libtiff/blobs/sha256:d2dfbad3fe68e070d0937c71b4de6ca110dda32599a2adfc2272f31064ae8652
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/a26e660ed5b116421a6dbb7550c38769a2c1ee3619e4e05202768cc1d729446e--libtiff--4.4.0.arm64_monterey.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/aom/manifests/3.4.0
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/960cdcf340a08fc2ed5f16d2cbf7d2d3f5dc110b4df0df159926aca746a43dc6--aom-3.4.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/aom/blobs/sha256:f16849b3bb161a0695d5bb6677799f4d87e1db60fbaf6719f1ea0a996847d029
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/43a851ccf4d3e7785b9d60744a279305b22b7c9a3102cd4554c1ad7220f81df1--aom--3.4.0.arm64_monterey.bottle.tar.gz
Warning: Building krb5 from source as the bottle needs:
- HOMEBREW_CELLAR: /opt/homebrew/Cellar (yours is /Volumes/Satechi.SSD.M2/homebrew/Cellar)
- HOMEBREW_PREFIX: /opt/homebrew (yours is /Volumes/Satechi.SSD.M2/homebrew)
==> Downloading https://kerberos.org/dist/krb5/1.20/krb5-1.20.tar.gz
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/6e2ebcecfb4893ac77e1724a4492e77dc53193c679df6fa9f44f0641aa0e185f--krb5-1.20.tar.gz
Warning: Building libpq from source as the bottle needs:
- HOMEBREW_CELLAR: /opt/homebrew/Cellar (yours is /Volumes/Satechi.SSD.M2/homebrew/Cellar)
- HOMEBREW_PREFIX: /opt/homebrew (yours is /Volumes/Satechi.SSD.M2/homebrew)
==> Downloading https://ftp.postgresql.org/pub/source/v14.4/postgresql-14.4.tar.bz2
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/5fc4b1e478c7edc04305eadc9285da556aeac65cc3987ea8651fc0f00468f95e--postgresql-14.4.tar.bz2
==> Downloading https://ghcr.io/v2/homebrew/core/libzip/manifests/1.9.2
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/cb899c2a5c3111ed02fd5b8b5130aa6b6f66f2bf4ad5f2f15bd8537ea3c09ed2--libzip-1.9.2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libzip/blobs/sha256:e27a1b53f6b09e0bb04071f66d878ef4594dbc3fde6e27a0b644d33a8ce34e0a
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/7c926e61bd610fa04fdd139f61f1b17f482485581586e0f685a3a3482192da12--libzip--1.9.2.arm64_monterey.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/oniguruma/manifests/6.9.8
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/fccf013b32eda50ffdfbb2748b9f01c7d5a845d5ba02bfeed201b6a30028800c--oniguruma-6.9.8.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/oniguruma/blobs/sha256:6c66f5d4198bfd9d9be019f4f40d19f4c68676df9eb0702f450ec818ef43d3e9
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/7d6a5f7cd1a97384adefddfb9d93988a5483cba45514e16df22b6022d7bf4f13--oniguruma--6.9.8.arm64_monterey.bottle.tar.gz
Warning: php#7.4 has been deprecated because it is a versioned formula!
Warning: Building httpd from source as the bottle needs:
- HOMEBREW_CELLAR: /opt/homebrew/Cellar (yours is /Volumes/Satechi.SSD.M2/homebrew/Cellar)
- HOMEBREW_PREFIX: /opt/homebrew (yours is /Volumes/Satechi.SSD.M2/homebrew)
==> Downloading https://dlcdn.apache.org/httpd/httpd-2.4.54.tar.bz2
Already downloaded: /Users/dennis/Library/Caches/Homebrew/downloads/0630b06c782baa4fd4809e1322ebb1439d78dfa0cde375669da966f5da5718cd--httpd-2.4.54.tar.bz2
==> Installing php#7.4 dependency: httpd
==> ./configure --enable-layout=Slackware-FHS --prefix=/Volumes/Satechi.SSD.M2/homebrew/Cellar/httpd/2.4.54 --sbindir=/Volumes/Satechi.SSD.M2/homebrew/Cellar/httpd/2.4.54/bin --mandir=/Volumes/Satechi.SSD.M2/homebrew/Cellar/httpd/2.4.54/share/man --sysconfdir=/Volumes/Satechi.SSD.M2/homebrew/etc/httpd --datadir=/Volum
==> make
==> make install
Error: An exception occurred within a child process:
Utils::Inreplace::Error: inreplace failed
/Volumes/Satechi.SSD.M2/homebrew/Cellar/httpd/2.4.54/lib/httpd/build/config_vars.mk:
expected replacement of #<Pathname:/Volumes/Satechi.SSD.M2/homebrew/Cellar/pcre2/10.40> with #<Pathname:/Volumes/Satechi.SSD.M2/homebrew/opt/pcre2>
I ran "brew doctor" with the following output: (We can ignore the error about brew not being in the path. I had removed it from PATH as a troubleshooting step before this step.)
dennis#macstudio:/opt/homebrew/bin 07/05 07:36:29
> 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 are deprecated or disabled.
You should find replacements for the following formulae:
php#7.4
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:
/homebrew/bin/pkg-config
/homebrew/bin/freetype-config
/homebrew/bin/libpng16-config
/homebrew/bin/libpng-config
/homebrew/bin/pspell-config
/homebrew/bin/python3.9-config
/homebrew/bin/onig-config
/homebrew/bin/python3-config
/homebrew/bin/pcre2-config
/homebrew/bin/pcre-config
/homebrew/bin/sdl2-config
/homebrew/bin/guile-config
Warning: Your Cellar and TEMP directories are on different volumes.
macOS won't move relative symlinks across volumes unless the target file already
exists. Brews known to be affected by this are Git and Narwhal.
You should set the "HOMEBREW_TEMP" environment variable to a suitable
directory on the same volume as your Cellar.
Warning: Your Homebrew's prefix is not /opt/homebrew.
Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/opt/homebrew).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.
Warning: /usr/bin occurs before /Volumes/Satechi.SSD.M2/homebrew/bin in your PATH.
This means that system-provided programs will be used instead of those
provided by Homebrew. Consider setting your PATH so that
/Volumes/Satechi.SSD.M2/homebrew/bin occurs before /usr/bin. Here is a one-liner:
echo 'export PATH="/Volumes/Satechi.SSD.M2/homebrew/bin:$PATH"' >> ~/.kshrc
The following tools exist at both paths:
python3
pip3
tidy
Warning: Homebrew's "bin" was not found in your PATH.
Consider setting your PATH for example like so:
echo 'export PATH="/Volumes/Satechi.SSD.M2/homebrew/bin:$PATH"' >> ~/.kshrc
Warning: Homebrew's "sbin" was not found in your PATH but you have installed
formulae that put executables in /Volumes/Satechi.SSD.M2/homebrew/sbin.
Consider setting your PATH for example like so:
echo 'export PATH="/Volumes/Satechi.SSD.M2/homebrew/sbin:$PATH"' >> ~/.kshrc
Here is the output of 'brew config':
> brew config
HOMEBREW_VERSION: 3.5.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: 88a5fac96752f17280e64f60926f58dff45990e0
Last commit: 8 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: edf3b15659f8130f2c6f4b8db62bc84c444c095d
Core tap last commit: 8 days ago
Core tap branch: master
HOMEBREW_PREFIX: /Volumes/Satechi.SSD.M2/homebrew
HOMEBREW_REPOSITORY: /Volumes/Satechi.SSD.M2/homebrew
HOMEBREW_CELLAR: /Volumes/Satechi.SSD.M2/homebrew/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 13.1.6 build 1316
Git: 2.32.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.4-arm64
CLT: 13.4.0.0.1.1651278267
Xcode: N/A
Rosetta 2: false
I don't understand enough about brew to begin diagnosing his problem, beyond what I've done here. Any help?

Package installed through Homebrew was not found in pkg-config search path

When trying to link to a system-installed library through Swift Package Manager, specifying it under pkgConfig, it says that the installed package wasn't found in the pkg-config search path. It suggests finding the .pc file that comes with the module but there isn't one.
How do I go about linking the library with SPM?
The way I went about it is creating the .pc file and putting it into /usr/local/lib/pkgconfig, where .pc files are kept, on your own.
.pc files essentially follow the following format:
Defined variables
Name, Description, Version
Libs and Cflags
So for example:
prefix=/usr/local/ModuleFolder
libdir=${prefix}/lib
includedir=${prefix}/include
Name: samplemodule
Description: Appears in a Stack Overflow answer.
Version: 1.0.0
Libs: -L${libdir}
Cflags: -I${includedir}
You can check if pkg-config now detects the file with pkg-config yourmodule --libs --cflags and if so then it should work in Package.swift as well.
If the application was installed through Homebrew, the missing .pc file issue should probably be reported to the developers, although they may not want to implement it in some cases.
More info on pkg-config files can be found at https://people.freedesktop.org/~dbn/pkg-config-guide.html

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.

Error compiling Mosquitto 1.4

I have tried to compile Mosquitto on both Arch and CentOS 7, but everytime I get the same error. I want to test the Websocket feature.
This is the procedure I am using for CentOS:
yum group install "Development Tools"
yum install cmake openssl-devel cmake
yum install uuid-devel libxslt docbook5-style-xsl.noarch docbook-style-xsl.noarch
git clone https://github.com/warmcat/libwebsockets.git
cd libwebsockets/
mkdir build;cd build
cmake ..
make
make install
git clone https://git.eclipse.org/r/mosquitto/org.eclipse.mosquitto
cd org.eclipse.mosquitto/
git checkout origin/1.4
vi config.mk
Change "WITH_WEBSOCKETS:=yes"
make
And this is where it dies on Arch and CentOS:
make[1]: Entering directory '/home/install/org.eclipse.mosquitto/src'
cc -Wall -ggdb -O2 -I. -I.. -I../lib -DVERSION="\"1.4\"" -DTIMESTAMP="\"2015-05-04 17:17:55+0200\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_UUID -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_WEBSOCKETS -DWITH_EC -c mosquitto.c -o mosquitto.o
In file included from /usr/include/unistd.h:25:0,
from mosquitto.c:22:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
mosquitto.c: In function ‘main’:
mosquitto.c:275:101: error: expected expression before ‘,’ token
_mosquitto_log_printf(NULL, MOSQ_LOG_INFO, "mosquitto version %s (build date %s) starting", VERSION, TIMESTAMP);
mosquitto.c:290:54: error: expected expression before ‘)’ token
snprintf(buf, 1024, "mosquitto version %s", VERSION);
mosquitto.c:368:88: error: expected expression before ‘)’ token
_mosquitto_log_printf(NULL, MOSQ_LOG_INFO, "mosquitto version %s terminating", VERSION);
Makefile:15: recipe for target 'mosquitto.o' failed
make[1]: *** [mosquitto.o] Error 1
make[1]: Leaving directory '/home/install/org.eclipse.mosquitto/src'
Makefile:21: recipe for target 'mosquitto' failed
make: *** [mosquitto] Error 2
If someone can please point out what I am doing wrong or missing ?
As #hardillb says, the VERSION defines are the problem. If I add the line
#define VERSION
to mosquitto.c, then I can reproduce the error that you see, but also get a warning about redefining VERSION.
If I remove the definition of VERSION from config.mk, then I get an error about VERSION not being defined.
These both make sense.
What seems to be happening for you is that the compiler is ignoring the command line definition -DVERSION="\"1.4.1\"" and replacing it with -DVERSION=, or isn't parsing the string properly. This doesn't make sense.
Other people have managed to compile on Arch, and the CentOS7 repository has a binary version - but without websockets.
After some investigation, it appears as though there is a bug in recent libwebsockets code. This changeset introduces some changes that mean that libwebsockets is claiming the macro VERSION all for itself, which isn't very polite for a library. If you use a released version of libwebsockets you should not have any problem compiling.
Just out of interest have you tried building from the TGZ src bundle for Mosquitto 1.4.1 available here:
http://mosquitto.org/download/
The errors look to be something to do with expanding the passed in VERSION and TIMESTAMP values. It builds fine [with the exception of the docs] on Fedora 20 which shouldn't be that far from RHEL 7.0 (and from there to Centos 7).

Resources