Add FreeBSD support (missing x64-freebsd ripgrep binary)
Resolved 💬 3 comments Opened Jan 28, 2026 by mmenefee Closed Jan 28, 2026
Problem
Claude Code fails on FreeBSD because the bundled ripgrep vendor directory doesn't include a FreeBSD binary:
spawn ~/.claude/local/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-freebsd/rg ENOENT
The vendor directory includes arm64-darwin, arm64-linux, x64-darwin, x64-linux, and x64-win32 — but not x64-freebsd.
Environment
- OS: FreeBSD 14.3-RELEASE (also tested on 15.0)
- Install method: npm (local install)
- System ripgrep:
/usr/local/bin/rg(v14.1.1, installed via pkg)
Workaround
Symlinking system ripgrep works, but breaks on every Claude Code update:
mkdir -p ~/.claude/local/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-freebsd
ln -s /usr/local/bin/rg ~/.claude/local/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-freebsd/rg
Suggested Fix
Either:
- Bundle an
x64-freebsdripgrep binary, or - Fall back to system
rg(viawhich rg) when the platform-specific binary is missing
Option 2 would be more robust and support any Unix-like system with ripgrep installed.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗