brew install openhuman fails: ArgumentError: unknown keyword: :bin in std_cargo_args
Problem
brew install openhuman (tap tinyhumansai/core, formula v0.52.27) fails immediately:
Error: An exception occurred within a child process:
ArgumentError: unknown keyword: :bin
Cause
Formula/o/openhuman.rb line 19:
system "cargo", "install", *std_cargo_args(bin: "openhuman-core")
Homebrew's std_cargo_args only accepts root:, path:, features: (see Library/Homebrew/formula.rb — def std_cargo_args(root:, path:, features:)). There is no bin: keyword, so any current Homebrew rejects this.
Reproduced on Homebrew 5.1.14 / macOS (Darwin 25.6.0, Apple Silicon).
Suggested fix
Pass --bin to cargo directly:
system "cargo", "install", "--bin", "openhuman-core", *std_cargo_args
(or *std_cargo_args + ["--bin", "openhuman-core"].)
Follow-up: after patching line 19 locally, the build fails again with:
thread 'main' panicked at .../cmake-0.1.58/src/lib.rs:1132:5:
failed to execute command: No such file or directory (os error 2)
is `cmake` not installed?
whisper-rs-sys (a transitive dep) shells out to cmake to build whisper.cpp, but the formula doesn't declare it. Suggest adding:
depends_on "cmake" => :build
alongside the existing pkgconf/rust build deps. With both fixes applied locally, brew install openhuman succeeds on Homebrew 5.1.14 / macOS arm64 and openhuman runs.
I hit these issues too, I couldn't quite figure out where to add depends_on "cmake" => :build that you were talking about, I see whisper-cpp.rb having this line already in it.
Getting this error too
@djdanielsson YMMV, but from what I can see — the confusing part is that whisper-cpp.rb is a separate Homebrew formula; its depends_on "cmake" => :build only applies when that formula gets built. openhuman doesn't use the whisper-cpp formula though; it pulls in the whisper-rs-sys Rust crate as a transitive dep and builds whisper.cpp from source via cargo install, which is why it needs its own cmake build dep.
You want to edit openhuman.rb directly. Find it with:
brew edit tinyhumansai/core/openhuman
Then add the cmake line alongside the existing build deps near the top of the formula, e.g.:
depends_on "cmake" => :build
depends_on "pkgconf" => :build
depends_on "rust" => :build
And while you're in there, patch line 19 as in the original issue:
system "cargo", "install", "--bin", "openhuman-core", *std_cargo_args
After that, brew reinstall openhuman should go through. Both fixes really need to land upstream in the tap though.
me too on macOS 26.5
The published formula in tinyhumansai/homebrew-core Formula/o/openhuman.rb at v0.56.0 already has both fixes applied:
depends_on "cmake" => :build
...
system "cargo", "install", "--bin", "openhuman-core", *std_cargo_args
The reported failure was against v0.52.27. Anyone hitting this on a current Homebrew should brew update && brew install openhuman to pick up the new revision. The follow-up cmake-rs failed to execute command: No such file or directory reported in the comments looks like a separate downstream build-tool dependency issue (likely a missing make/ninja/Xcode CLT) — probably worth a fresh issue rather than gating this one. This issue can probably be closed as resolved.
Already fixed in the published tap. The tinyhumansai/core formula no longer calls std_cargo_args(bin:) — current formula (v0.56.0) uses:
system "cargo", "install", "--bin", "openhuman-core", *std_cargo_args
which is exactly the suggested fix. The failure was on the stale v0.52.27 formula. Please brew update (or brew untap tinyhumansai/core && brew tap tinyhumansai/core) and reinstall — brew install openhuman should now succeed. Closing as resolved; reopen if it recurs on a current formula.