Does something changed in the vendored ripgrep build?
I'm building a claude-code Formula on my personal Homebrew tap and since a few version (0.2.101 or 0.2.102) i'm getting this error:
Error: Failed changing dylib ID of /opt/homebrew/Cellar/claude-code/0.2.103/libexec/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/ripgrep.node
from /Users/dancol/code/claude-cli-queue/vendor/ripgrep-src/target/aarch64-apple-darwin/release/deps/libripgrep.dylib
to /opt/homebrew/opt/claude-code/libexec/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/libripgrep.dylib
Does something changed in the build process on your side?
Nothing changed that I know of here, but it is odd that is showing one of our users paths here.
The next error message talks about relinking the binary with "with -headerpad or -headerpad_max_install_names". TBH i don't know if this is something to do on your pre-compiled ripgrep binary or during the Homebrew build steps. I may ask for some help from Homebrew community.
Error: Failed to fix install linkage
Updated load commands do not fit in the header of /opt/homebrew/Cellar/claude-code/0.2.122/libexec/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/ripgrep.node. /opt/homebrew/Cellar/claude-code/0.2.122/libexec/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/ripgrep.node needs to be relinked, possibly with -headerpad or -headerpad_max_install_names
Same issue
==> npm install -g --prefix /opt/homebrew/Cellar/claude-code/1.0.24 @anthropic-ai/[email protected]
Error: Failed changing dylib ID of /opt/homebrew/Cellar/claude-code/1.0.24/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/ripgrep.node
from /Users/dancol/code/claude-cli-queue/vendor/ripgrep-src/target/x86_64-apple-darwin/release/deps/libripgrep.dylib
to /opt/homebrew/opt/claude-code/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/libripgrep.dylib
Error: Failed to fix install linkage
Updated load commands do not fit in the header of /opt/homebrew/Cellar/claude-code/1.0.24/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/ripgrep.node. /opt/homebrew/Cellar/claude-code/1.0.24/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/ripgrep.node needs to be relinked, possibly with -headerpad or -headerpad_max_install_names
The formula built, but you may encounter issues using it or linking other
formulae against it.
We shipped some changes for this recently. Next steps:
claude /doctorshould tell you if Search (which includes @ file mentions and custom agents / slash commands) is working- If not, see https://docs.anthropic.com/en/docs/claude-code/troubleshooting#search-and-discovery-issues
I can confirm that it is solved now. Thanks.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.