[BUG] v2.1.63 crashes on Alpine Linux (musl): posix_getdents symbol not found

Resolved 💬 13 comments Opened Feb 28, 2026 by H3CATE Closed Apr 3, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude Code v2.1.63 crashes immediately on Alpine Linux (musl libc) with:
Error relocating /home/claude/.local/bin/claude: posix_getdents: symbol not found
Every command fails, including claude --version.

What Should Happen?

Claude Code should start normally on Alpine Linux, as it did with v2.1.62.

Error Messages/Logs

Error relocating /home/claude/.local/bin/claude: posix_getdents: symbol not found

Steps to Reproduce

  1. Have Claude Code installed on Alpine Linux (musl-based)
  2. Auto-update to v2.1.63
  3. Run any command, e.g. claude --version
  4. Observe the posix_getdents: symbol not found error

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.62

Claude Code Version

2.1.63 (broken) / 2.1.62 (Claude Code) (rollback)

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

Installing gcompat (glibc compatibility shim) does not resolve the issue.
posix_getdents is not provided by gcompat either.

The 2.1.63 binary is ~6MB larger than 2.1.62 (225MB vs 219MB), suggesting a
dependency change. posix_getdents is a glibc-specific symbol absent from musl libc.

Workaround: roll back the symlink:
ln -sf ~/.local/share/claude/versions/2.1.62 ~/.local/bin/claude

View original on GitHub ↗

This issue has 13 comments on GitHub. Read the full discussion on GitHub ↗