Skip to main content
Having trouble with zerobrew? Check these common issues and solutions.

Common Issues

If you encounter permission errors when running zb install, this usually means zerobrew doesn’t have write access to the installation directory.Solution:
  • Ensure you have proper permissions for the installation prefix
  • On macOS, zerobrew defaults to /opt/zerobrew to stay within the 13-character Mach-O path limit
  • You can customize the installation directory during setup
  • Avoid using sudo with zerobrew commands
Download issues can occur due to network problems or unavailable bottles.Solution:
  • Check your internet connection
  • Try again after a few minutes (the Homebrew API might be temporarily unavailable)
  • If no bottle is available for your platform, use the --build-from-source or -s flag:
    zb install <package> --build-from-source
    
  • This will compile the package from source locally
If zerobrew commands aren’t recognized after installation, your shell may not be properly configured.Solution:
  • zerobrew should automatically configure your shell during installation
  • Supported shells: bash, zsh, and fish
  • Restart your terminal or run:
    source ~/.bashrc  # for bash
    source ~/.zshrc   # for zsh
    
  • For fish, run: source ~/.config/fish/config.fish
On macOS ARM (M1/M2/M3), you might see an error about missing zbx-darwin-arm64.Solution:
  • This was fixed in recent releases where zbx binaries are now included
  • Update to the latest version of zerobrew
  • Run zb update or reinstall zerobrew from the latest release
Some packages may fail to install with errors related to binary patching.Solution:
  • zerobrew automatically patches Mach-O binaries to work with custom prefixes
  • Recent versions preserve the execute bit when patching
  • If the new prefix is longer than the old one, patching is skipped automatically
  • Ensure you’re using the latest version of zerobrew
Issues installing packages from external taps or cask formulas.Solution:
  • zerobrew now supports external taps and casks with safer install/uninstall behavior
  • Make sure you’re running the latest version
  • For GitHub releases, zerobrew will attempt to install directly with a clone fallback
Installations taking longer than expected.Solution:
  • zerobrew is optimized for speed with parallel downloads and minimal overhead
  • Check your network connection speed
  • Clear the cache and try again: zb cleanup
  • Building from source will naturally take longer than installing bottles

Need More Help?

If you’re still experiencing issues:

Open an Issue

Report bugs or request features on GitHub

Join Discord

Get help from the community and maintainers
When reporting issues, include:
  • Your operating system and version
  • zerobrew version (run zb --version)
  • The full command you ran
  • The complete error message

Build docs developers (and LLMs) love