claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Does something changed in the vendored ripgrep build?

Open nikaro opened this issue 8 months ago • 3 comments

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?

nikaro avatar May 07 '25 05:05 nikaro

Nothing changed that I know of here, but it is odd that is showing one of our users paths here.

wolffiex avatar May 13 '25 15:05 wolffiex

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

nikaro avatar May 20 '25 12:05 nikaro

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.

oschrenk avatar Jun 14 '25 18:06 oschrenk

We shipped some changes for this recently. Next steps:

  • claude /doctor should 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

ant-kurt avatar Aug 22 '25 22:08 ant-kurt

I can confirm that it is solved now. Thanks.

nikaro avatar Aug 23 '25 10:08 nikaro

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.

github-actions[bot] avatar Aug 30 '25 14:08 github-actions[bot]