Support Claude Code on Linux distributions with coreutils < 8.30

Resolved 💬 3 comments Opened Jun 19, 2025 by jackrein Closed Jun 20, 2025

When running Claude Code on Linux distributions with coreutils versions < 8.30, it fails with the following output:

% claude
/usr/bin/env: invalid option -- 'S'
Try '/usr/bin/env --help' for more information.

The 8.30 release of coreutils (release notes) added the -S option to env. Amazon Linux 2 is one example of a system with a coreutils version < 8.30: it uses coreutils version 8.22. This is the OS I've verified the problem on.

https://github.com/anthropics/claude-code/issues/67 is likely related to this, but does not specify anything about the OS. https://github.com/anthropics/claude-code/issues/248 is also similar.

The ask here is to make Claude Code compatible with older distributions of Linux with coreutils < 8.30

View original on GitHub ↗

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