google-gemini/gemini-cli

[Bug]: ripgrep ENOENT on Termux due to incompatible binary

Open

#21 836 ouverte le 10 mars 2026

Voir sur GitHub
 (12 commentaires) (0 réactions) (1 assigné)TypeScript (13 657 forks)batch import
area/coreeffort/largehelp wantedkind/bugpriority/p2status/bot-triaged

Métriques du dépôt

Stars
 (103 992 stars)
Métriques de merge PR
 (Merge moyen 4j 2h) (55 PRs mergées en 30 j)

Description

What happened?

Gemini CLI fails to execute grep_search on Termux (Android) with 'spawn .../rg ENOENT'. This happens because the managed ripgrep binary is compiled for standard GNU/Linux and expects a dynamic linker at /lib/ld-linux-aarch64.so.1, which does not exist in Termux's non-FHS environment.

What did you expect to happen?

The CLI should detect the environment and either use a compatible ripgrep binary or fallback to the system-installed 'rg' if available.

Client information

Termux on Android (aarch64).

Anything else we need to know?

A temporary workaround is to install ripgrep via 'pkg install ripgrep' and symlink it to the expected path in .gemini/tmp/bin/rg.

Guide contributeur