GLIBC_2.25 Required -> Need An Alternative #2013

Open
opened 2026-02-16 17:33:43 -05:00 by yindo · 6 comments
Owner

Originally created by @james-gour on GitHub (Oct 8, 2025).

Originally assigned to: @thdxr on GitHub.

I am facing:
opencode/bin/opencode: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by opencode/bin/opencode)

Does OpenCode offer a binary compiled from older GLIBC versions like Neovim does? Or perhaps an appimage might work in this case?

I'm on an older machine for work, with no opportunity to upgrade GLIBC :(

Originally created by @james-gour on GitHub (Oct 8, 2025). Originally assigned to: @thdxr on GitHub. I am facing: opencode/bin/opencode: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by opencode/bin/opencode) Does OpenCode offer a binary compiled from older GLIBC versions like Neovim does? Or perhaps an appimage might work in this case? I'm on an older machine for work, with no opportunity to upgrade GLIBC :(
Author
Owner

@arsham commented on GitHub (Oct 8, 2025):

Would https://distrobox.it/ help?

@arsham commented on GitHub (Oct 8, 2025): Would https://distrobox.it/ help?
Author
Owner

@james-gour commented on GitHub (Oct 10, 2025):

Would https://distrobox.it/ help?

This may just work @arsham -> thanks for the reply!! :)

@james-gour commented on GitHub (Oct 10, 2025): > Would https://distrobox.it/ help? This may just work @arsham -> thanks for the reply!! :)
Author
Owner

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

Same issue here on a compute cluster.

@moritzschaefer commented on GitHub (Nov 7, 2025): Same issue here on a compute cluster.
Author
Owner

@yurenchen000 commented on GitHub (Dec 9, 2025):

the release pre-build binary was built on new version os.
event the *-musl version depends on glibc :

Failed to load lib 71 | Set BUN_PTY_LIB or ensure one of these paths contains the file.`);
72 | }
73 | var libPath = resolveLibPath();
74 | var lib;
75 | try {
76 |   lib = dlopen(libPath, {
             ^
error: Failed to open library "/tmp/.1e7fff7e34beff7e-00000001.so": Error relocating /tmp/.1e7fff7e34beff7e-00000001.so: gnu_get_libc_version: symbol not found
 syscall: "dlopen",
   errno: 0,
    code: "ERR_DLOPEN_FAILED"

      at dlopen (bun:ffi:345:28)
      at <anonymous> (../../node_modules/.bun/bun-pty@0.4.2/node_modules/bun-pty/dist/index.js:76:9)
      at <anonymous> (/$bunfs/root/src/index.js:28:48)
      at <anonymous> (src/pty/index.ts:35:23)

my temp workaround is run in docker with ubuntu 24.04
(for opencode v1.0.134 @202512)

@yurenchen000 commented on GitHub (Dec 9, 2025): the release pre-build binary was built on new version os. event the `*-musl` version depends on glibc : ```sh Failed to load lib 71 | Set BUN_PTY_LIB or ensure one of these paths contains the file.`); 72 | } 73 | var libPath = resolveLibPath(); 74 | var lib; 75 | try { 76 | lib = dlopen(libPath, { ^ error: Failed to open library "/tmp/.1e7fff7e34beff7e-00000001.so": Error relocating /tmp/.1e7fff7e34beff7e-00000001.so: gnu_get_libc_version: symbol not found syscall: "dlopen", errno: 0, code: "ERR_DLOPEN_FAILED" at dlopen (bun:ffi:345:28) at <anonymous> (../../node_modules/.bun/bun-pty@0.4.2/node_modules/bun-pty/dist/index.js:76:9) at <anonymous> (/$bunfs/root/src/index.js:28:48) at <anonymous> (src/pty/index.ts:35:23) ``` my temp workaround is run in docker with ubuntu 24.04 (for opencode v1.0.134 @202512)
Author
Owner

@Samueru-sama commented on GitHub (Dec 30, 2025):

I'm making appimage releases that work even in ubuntu 14.04:

https://github.com/pkgforge-dev/opencode-AppImage-Enhanced

Image
@Samueru-sama commented on GitHub (Dec 30, 2025): I'm making appimage releases that work even in ubuntu 14.04: https://github.com/pkgforge-dev/opencode-AppImage-Enhanced <img width="1426" height="873" alt="Image" src="https://github.com/user-attachments/assets/65c499a1-b581-4e8c-bc58-395d786bd17e" />
Author
Owner

@pedropombeiro commented on GitHub (Jan 25, 2026):

For the time being, I'm using my fork where I'm building a compatible version with Docker: https://github.com/pedropombeiro/opencode.

Then I just installed it using mise:

mise install github:pedropombeiro/opencode@v1.1.35-legacy-glibc
@pedropombeiro commented on GitHub (Jan 25, 2026): For the time being, I'm using my fork where I'm building a compatible version with Docker: https://github.com/pedropombeiro/opencode. Then I just installed it using mise: ```shell mise install github:pedropombeiro/opencode@v1.1.35-legacy-glibc ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2013