YOLO script not helpful in Termux #512

Open
opened 2026-02-16 17:27:07 -05:00 by yindo · 13 comments
Owner

Originally created by @Huge on GitHub (Jul 5, 2025).

Originally assigned to: @thdxr on GitHub.

...
Successfully added opencode to $PATH in /data/data/com.termux/files/home/.bashrc
12:48:51 u0_a338@localhost ~ → opencode
No command opencode found, did you mean:
 Command qrencode in package libqrencode
 Command uuencode in package sharutils
12:49:31 u0_a338@localhost ~ → source .bas
.bash_history  .bash_profile  .bashrc
12:49:31 u0_a338@localhost ~ → source .bashrc
12:49:58 u0_a338@localhost ~ → opencode
bash: /data/data/com.termux/files/home/.opencode/bin/opencode: cannot execute: required file not found

After the last error I have no idea for a fix, at least a more specific error message would help.

Originally created by @Huge on GitHub (Jul 5, 2025). Originally assigned to: @thdxr on GitHub. ``` ... Successfully added opencode to $PATH in /data/data/com.termux/files/home/.bashrc 12:48:51 u0_a338@localhost ~ → opencode No command opencode found, did you mean: Command qrencode in package libqrencode Command uuencode in package sharutils 12:49:31 u0_a338@localhost ~ → source .bas .bash_history .bash_profile .bashrc 12:49:31 u0_a338@localhost ~ → source .bashrc 12:49:58 u0_a338@localhost ~ → opencode bash: /data/data/com.termux/files/home/.opencode/bin/opencode: cannot execute: required file not found ``` After the last error I have no idea for a fix, at least a more specific error message would help.
yindo added the help-wanted label 2026-02-16 17:27:07 -05:00
Author
Owner

@thdxr commented on GitHub (Jul 5, 2025):

does ~/.opencode exist?

@thdxr commented on GitHub (Jul 5, 2025): does `~/.opencode` exist?
Author
Owner

@MatthewScholefield commented on GitHub (Jul 13, 2025):

The file exists but I assume it's the wrong architecture and that error results in a slightly misleading / incorrect error message of file does not exist.

@MatthewScholefield commented on GitHub (Jul 13, 2025): The file exists but I assume it's the wrong architecture and that error results in a slightly misleading / incorrect error message of file does not exist.
Author
Owner

@keeganmccallum commented on GitHub (Jul 14, 2025):

I think it's maybe another linked file, the file itself is there but throws the error message

@keeganmccallum commented on GitHub (Jul 14, 2025): I think it's maybe another linked file, the file itself is there but throws the error message
Author
Owner

@Huge commented on GitHub (Jul 16, 2025):

does ~/.opencode exist?

As Callum has said, yes it exists. I'm curious about the

required file not found

if it is part of this repository, I've not found it.

@Huge commented on GitHub (Jul 16, 2025): > does `~/.opencode` exist? As Callum has said, yes it exists. I'm curious about the > required file not found if it is part of this repository, I've not found it.
Author
Owner

@thdxr commented on GitHub (Jul 16, 2025):

i'm not too sure - not exactly easy for me to reproduce this so would need someone who has the issue to do some digging

@thdxr commented on GitHub (Jul 16, 2025): i'm not too sure - not exactly easy for me to reproduce this so would need someone who has the issue to do some digging
Author
Owner

@alkadras commented on GitHub (Jul 17, 2025):

Bu sorunu çözebilecek bir yok mu

@alkadras commented on GitHub (Jul 17, 2025): Bu sorunu çözebilecek bir yok mu
Author
Owner

@tspader commented on GitHub (Aug 3, 2025):

I reproduced this when I tried to install in an Alpine container running on macOS. It installed the arm64 binary (which matches the host machine, not the container, which is running through Rosetta). I have no idea if this is something the package maintainer needs to fix in the metadata or if this is something that doesn't work in npm/pnpm. But the issue is definitely what was suggested, wrong architecture

@tspader commented on GitHub (Aug 3, 2025): I reproduced this when I tried to install in an Alpine container running on macOS. It installed the arm64 binary (which matches the host machine, not the container, which is running through Rosetta). I have no idea if this is something the package maintainer needs to fix in the metadata or if this is something that doesn't work in npm/pnpm. But the issue is definitely what was suggested, wrong architecture
Author
Owner

@filip-risteski commented on GitHub (Sep 12, 2025):

I just tried this, same issue

@filip-risteski commented on GitHub (Sep 12, 2025): I just tried this, same issue
Author
Owner

@code-with-nex commented on GitHub (Sep 30, 2025):

@Huge I experienced the same issue, which I believe was due to how Termux represents Android. Switching to a proot distribution (Debian, in my case) resolved it, and I can now work without problems.

@code-with-nex commented on GitHub (Sep 30, 2025): @Huge I experienced the same issue, which I believe was due to how Termux represents Android. Switching to a proot distribution (Debian, in my case) resolved it, and I can now work without problems.
Author
Owner

@pobeda1 commented on GitHub (Oct 12, 2025):

Your architecture (this is the real issue)

uname -m

Output: aarch64 (Android ARM64)

What the npm package expects

- opencode-linux-x64 (Linux, 64-bit Intel)

- opencode-darwin-x64 (macOS, Intel)

- opencode-darwin-arm64 (macOS, Apple Silicon)

- opencode-android-arm64 (Missing - this is what you need!)

@pobeda1 commented on GitHub (Oct 12, 2025): # Your architecture (this is the real issue) uname -m # Output: aarch64 (Android ARM64) # What the npm package expects # - opencode-linux-x64 (Linux, 64-bit Intel) # - opencode-darwin-x64 (macOS, Intel) # - opencode-darwin-arm64 (macOS, Apple Silicon) # - opencode-android-arm64 ❌ (Missing - this is what you need!)
Author
Owner

@pobeda1 commented on GitHub (Oct 12, 2025):

Bun on Termux · Issue #8685 · oven-sh/bun https://github.com/oven-sh/bun/issues/8685

Maybe this thing affects. Because can't run bun too.

@pobeda1 commented on GitHub (Oct 12, 2025): Bun on Termux · Issue #8685 · oven-sh/bun https://github.com/oven-sh/bun/issues/8685 Maybe this thing affects. Because can't run bun too.
Author
Owner

@honzakostejn commented on GitHub (Nov 7, 2025):

I'm able to run opencode from flake on nix-on-droid (nix enabled fork of Termux) without root. If this is still not working for you, you can try this.

@honzakostejn commented on GitHub (Nov 7, 2025): I'm able to run opencode from flake on nix-on-droid (nix enabled fork of Termux) without root. If this is still not working for you, you can try this.
Author
Owner

@Steven-Martin-CC commented on GitHub (Nov 29, 2025):

On termux I think this is the problem:
/data/data/com.termux/files/home/.opencode/bin/opencode: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=61c89cbce93de43843a486719fdbfd10f711c71d, not stripped

Termux uses Bionic libc not glibc

@Steven-Martin-CC commented on GitHub (Nov 29, 2025): On termux I think this is the problem: /data/data/com.termux/files/home/.opencode/bin/opencode: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=61c89cbce93de43843a486719fdbfd10f711c71d, not stripped Termux uses Bionic libc not glibc
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#512