Manually resolve error in homebrew formula

Viewed 249

While attempting to run the command brew install mbedtls --HEAD I encountered an error:

Error: An exception occurred within a child process:
  Errno::ENOENT: No such file or directory @ rb_sysopen - include/mbedtls/config.h

I inspected the homebrew formula and see that mbedtls's include/mbedtls/config.h is referenced on line 27.

I reviewed the mbedtls git repo and sure enough, the file include/mbedtls/config.h no longer exists. I searched through the commit history and can see that config.h was renamed to to mbedtls_config.h.

How do I go about manually resolving the filename error in the homebrew formula?

1 Answers

The answer to my original question was found using the answer from this question.

The local source for the formula can be edited using brew edit formula_name

Even with the change homebrew was still unable to complete the install, but provided more useful error messages that allowed me to locate the relevant resources:

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
mbedtls 3.0.0 https://github.com/Homebrew/homebrew-core/pull/80727
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.
Related