cannot execute binary file #2016

Closed
opened 2026-02-16 17:33:45 -05:00 by yindo · 3 comments
Owner

Originally created by @dlukt on GitHub (Oct 9, 2025).

 opencode
/home/darko/.local/share/pnpm/global/5/.pnpm/opencode-ai@0.14.6/node_modules/opencode-ai/bin/opencode: /home/darko/.local/share/pnpm/global/5/.pnpm/opencode-ai@0.14.6/node_modules/opencode-ai/bin/opencode: cannot execute binary file

since 0.14.5

Originally created by @dlukt on GitHub (Oct 9, 2025). ``` opencode /home/darko/.local/share/pnpm/global/5/.pnpm/opencode-ai@0.14.6/node_modules/opencode-ai/bin/opencode: /home/darko/.local/share/pnpm/global/5/.pnpm/opencode-ai@0.14.6/node_modules/opencode-ai/bin/opencode: cannot execute binary file ``` since 0.14.5
yindo closed this issue 2026-02-16 17:33:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 9, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #462: NixOS and static binary support - discusses similar binary execution issues on Linux systems with dynamic linking problems
  • #1856: Missing ~/.local/share/opencode/bin directory causes ENOENT errors when spawning processes, which can manifest as binary execution failures
  • #631: General Windows Support issue which includes binary execution problems across different platforms

The error "cannot execute binary file" combined with pnpm installation suggests this could be related to binary architecture mismatches or permission issues similar to those discussed in the above issues.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 9, 2025): This issue might be a duplicate of existing issues. Please check: - #462: NixOS and static binary support - discusses similar binary execution issues on Linux systems with dynamic linking problems - #1856: Missing ~/.local/share/opencode/bin directory causes ENOENT errors when spawning processes, which can manifest as binary execution failures - #631: General Windows Support issue which includes binary execution problems across different platforms The error "cannot execute binary file" combined with pnpm installation suggests this could be related to binary architecture mismatches or permission issues similar to those discussed in the above issues. Feel free to ignore if none of these address your specific case.
Author
Owner

@dlukt commented on GitHub (Oct 9, 2025):

uninstalling and installing fixed it.
solved for me, potentially not solved for someone upgrading from 0.14.3

@dlukt commented on GitHub (Oct 9, 2025): uninstalling and installing fixed it. solved for me, potentially not solved for someone upgrading from 0.14.3
Author
Owner

@rekram1-node commented on GitHub (Oct 9, 2025):

hmm weird haven’t seen anyone else report…

will keep an eye out, thx for raising this

@rekram1-node commented on GitHub (Oct 9, 2025): hmm weird haven’t seen anyone else report… will keep an eye out, thx for raising this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2016