opencode icon indicating copy to clipboard operation
opencode copied to clipboard

GLIBC_2.25 Required -> Need An Alternative

Open james-gour opened this issue 3 months ago • 5 comments

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 :(

james-gour avatar Oct 08 '25 18:10 james-gour

Would https://distrobox.it/ help?

arsham avatar Oct 08 '25 18:10 arsham

Would https://distrobox.it/ help?

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

james-gour avatar Oct 10 '25 17:10 james-gour

Same issue here on a compute cluster.

moritzschaefer avatar Nov 08 '25 00:11 moritzschaefer

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/[email protected]/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 avatar Dec 09 '25 07:12 yurenchen000