google-gemini / google-gemini/gemini-cli

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

Open
#21,836 14 comments 0 reactions 1 assignee Claimed by @student-ankitpandit View on GitHub
area/core effort/large help wanted kind/bug priority/p2 status/bot-triaged
Dominant language
TypeScript
Stars
107k
Forks
14.6k
Avg merge
2d 3h
Merged PRs (30d)
45

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.