Skip to content

Commit

Permalink
docs: Update README for Homebrew error (#72)
Browse files Browse the repository at this point in the history
On e.g. macOS Ventura 13.2, Homebrew throws an error when installing
valgrind as mentioned in the README. However it also provides the
solution for fixing it.

Signed-off-by: Dominik Gedon <dgedon@suse.de>
  • Loading branch information
nodeg authored Feb 9, 2023
1 parent 4233f2e commit ee485f9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ Then, install `valgrind`:
brew install --HEAD LouisBrunner/valgrind/valgrind
```

It is possible that Homebrew shows you the following error message afterwards:

```bash
error: Invalid usage: --HEAD is not supported with HOMEBREW_NO_INSTALL_FROM_API unset! To resolve please run:
export HOMEBREW_NO_INSTALL_FROM_API=1
brew tap Homebrew/core
and retry this command.
```

If so, just execute both commands and retry the installation as mentioned above.

You can now use `valgrind` as normal.

Note: in case of failures during the build, [make sure you have the latest Xcode/CLI tools installed](https://github.com/LouisBrunner/valgrind-macos/issues/6#issuecomment-667587385).
Expand Down

0 comments on commit ee485f9

Please sign in to comment.