Command not found: pkgconf

I’ve received the following error when attempting to install 1) zarith 2) graphics from opam:

#=== ERROR while compiling conf-pkg-config.4 ==================================#

context 2.5.0 | macos/arm64 | ocaml-base-compiler.5.4.0 | https://opam.ocaml.org#198be18bb88a0b56489f5a35ddf3b455080fe905

path ~/.opam/due/.opam-switch/build/conf-pkg-config.4

command ~/.opam/opam-init/hooks/sandbox.sh build pkgconf --version

exit-code 10

env-file ~/.opam/log/conf-pkg-config-62222-11b4a5.env

output-file ~/.opam/log/conf-pkg-config-62222-11b4a5.out

output

[ERROR] Command not found: pkgconf

Thanks for any help.

Solved by uninstalling and reinstalling pkgconf from homebrew. Apologies for the off-topic noise.