Error when installing CLI through brew
I'm getting the following error trying to install the CLI through homebrew on MacOS. Note that I did install the desktop app succesfully and the CLI through cargo with success. So something inside the install procedure is not working as it should
% brew tap silverstein/tap && brew install minutes
Warning: Treating minutes as a formula. For the cask, use silverstein/tap/minutes or specify the `--cask` flag. To silence this message, use the `--formula` flag.
==> Fetching downloads for: minutes
✔︎ Formula minutes (0.10.2)
==> Installing minutes from silverstein/tap
==> cargo install --path crates/cli --root /opt/homebrew/Cellar/minutes/0.10.2
Last 15 lines from /{user_redacted}/Library/Logs/Homebrew/minutes/01.cargo.log:
/bin/sh: ccache: command not found
make[2]: *** [ggml/src/CMakeFiles/ggml-base.dir/ggml.cpp.o] Error 127
make[2]: *** [ggml/src/CMakeFiles/ggml-base.dir/ggml-backend.cpp.o] Error 127
make[1]: *** [ggml/src/CMakeFiles/ggml-base.dir/all] Error 2
make: *** [all] Error 2
thread 'main' (195560) panicked at /{user_redacted}/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-1949cf8c6b5b557f/cmake-0.1.58/src/lib.rs:1132:5:
command did not execute successfully, got: exit status: 2
build script failed, must exit now
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `minutes-cli v0.10.2 (/private/tmp/minutes-20260407-19576-ry0wf/crates/cli)`, intermediate artifacts can be found at `/private/tmp/minutes-20260407-19576-ry0wf/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
If reporting this issue please do so at (not Homebrew/* repositories):
https://github.com/silverstein/homebrew-tap/issues
EDIT: Note that its not ccache on the system itself thats missing. This is the output for which
% which ccache
/opt/homebrew/bin/ccache
Thanks for the detailed report — and especially for the which ccache follow-up. That was the key clue.
Root cause: whisper.cpp's bundled ggml/src/CMakeLists.txt has this block:
if (GGML_CCACHE AND NOT CMAKE_C_COMPILER_LAUNCHER AND NOT CMAKE_CXX_COMPILER_LAUNCHER)
find_program(GGML_CCACHE_FOUND ccache)
...
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${GGML_CCACHE_VARIANT}")
GGML_CCACHE defaults to ON. At cmake-configure time, find_program() located /opt/homebrew/bin/ccache on your machine (Homebrew's build sandbox does expose that directory at configure time), and ccache got assigned as the global compile-rule launcher. At make-time, the resulting ccache <compiler> ... invocation runs through /bin/sh with superenv's sanitized PATH, which doesn't surface ccache unless it's a declared dep — hence command not found followed by exit 127.
This bug has been latent in the formula since the upstream GGML_CCACHE option was added. It only triggers for users who happen to have ccache installed for other reasons (Rust performance work, iOS builds, etc.). Most users hit find_program -> NOTFOUND, the launcher block is skipped, and the build proceeds — which is why it took this long for anyone to report it.
Fix: silverstein/homebrew-tap@0df92fe sets GGML_CCACHE=OFF in the formula's install block. whisper-rs-sys's build.rs explicitly forwards any GGML_*, WHISPER_*, or CMAKE_* env var as a -D<KEY>=<VALUE> argument to cmake, so the option propagates cleanly down to whisper.cpp's CMake and skips the entire ccache discovery block at the source. No new build dep, deterministic regardless of your ccache state.
Could you give it another shot:
brew update
brew reinstall --formula minutes
If you still hit a build failure (whether the same or different), paste the new tail of 01.cargo.log and I'll iterate. If it's clean, I'll close this out.
One sidebar: if you primarily want Minutes as a desktop app, brew install --cask silverstein/tap/minutes (without --formula) installs a precompiled signed DMG and skips the source build entirely — much faster. The --formula route compiles whisper.cpp from source (cmake, C++ stdlib, several minutes on a fresh machine) and exists for headless / CLI-only installs where the desktop app isn't wanted.
Fixed!
Excellent! Thanks for confirming, @rvh70, and for the detailed original report. That which ccache clue was what turned a vague build failure into a one-line fix.