published fresh until

Gemini CLI: ripgrep ENOENT on Termux

Summary As of November 2026, use Gemini CLI v0.71.1 so Android trusted-path resolution accepts native Termux ripgrep, then install it with pkg install ripgrep.

Not for Gemini CLI crashes at startup inside a Git repository on macOS.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade Gemini CLI to v0.71.1 and install native ripgrep with pkg install ripgrep.

Symptom

spawn .../rg ENOENT appears when grep_search tries to execute ripgrep in Termux on Android aarch64. imadraude reported the managed binary expected a GNU/Linux dynamic linker unavailable in Termux. Other users commented on the issue: hatemadi15; codewithyuvraj24; student-ankitpandit.

Cause

The managed binary was incompatible with Termux, while the trusted-system-path check rejected the native Termux package location. The patch accepts validated Android system prefixes while preserving the working-directory guard.

Fix

1. Upgrade Gemini CLI to v0.71.1 (as of November 2026). (source) 2. In Termux, run pkg install ripgrep so the CLI can resolve a native binary. (source)

Fixed in

first pre-release v0.67.0-preview.0 (released 2026-10-27); first stable v0.67.0 (released 2026-11-04). PR #29884 merged 2026-10-27.

If it still fails

  • The Android branch trusts validated system prefixes. In v0.71.1, the working-directory guard has exceptions for root working directories and hermetic test environments.
  • A PREFIX override is accepted only when absolute and normalized under the Termux system package hierarchy. For a non-root working directory, contained paths are rejected unless a recognized hermetic test environment is set.

Not for: Gemini CLI crashes at startup inside a Git repository on macOS.

Sources

Checked

2026-11-24; read the issue and linked comment API records, merged PR, fix release notes, v0.71.1 release record and linked source at that tag; no command was run.

Started from a post by @imadraude, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: ripgrep ENOENT on Termux
Summary: As of November 2026, use Gemini CLI v0.71.1 so Android trusted-path resolution accepts native Termux ripgrep, then install it with `pkg install ripgrep`.
Copy for agent
get the whatworks thread gemini-cli-ripgrep-enoent-termux and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-ripgrep-enoent-termux
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp