opencode icon indicating copy to clipboard operation
opencode copied to clipboard

GLIBC_2.18' not found (required by opencode)

Open NinhGhoster opened this issue 2 months ago • 4 comments

Description

19:55:01 [nguyen_h@orsu ~]$ opencode opencode: /lib64/libc.so.6: version GLIBC_2.18' not found (required by opencode) opencode: /lib64/libc.so.6: version GLIBC_2.24' not found (required by opencode) opencode: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by opencode)

I'm running opencode on HPC, which doesn't allow the sudo command. I think there are a few packages missing which lead to this error.

OpenCode version

1.0.120

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

CentOS Linux 7 (Core) (GNU/Linux 3.10.0-1160.119.1.el7.x86_64 x86_64)

Terminal

Cursor on Windows

NinhGhoster avatar Nov 29 '25 19:11 NinhGhoster

I encountered a similar issue

My system is CentOS7, and I don't have root permissions, making it inconvenient to use Docker.

Initially, I successfully installed opencode using npm install -g opencode-ai@latest During normal execution, I encountered similar errors: opencode: /lib64/libc.so.6: version GLIBC_2.18' not found (required by opencode) opencode: /lib64/libc.so.6: version GLIBC_2.24' not found (required by opencode) opencode: /lib64/libc.so.6: version GLIBC_2.25' not found (required by opencode)

I tried installing a GLIBC 2.28 on my local machine to solve the GLIBC missing issue for common software. After installation and configuration, I used the following command to start opencode, but encountered new problems: no errors were shown, but the system only printed the help information of bun.

NEW_GLIBC_DIR=/public/Project/software/download/glibc/install (high version GLIBC path 2.28)
GCCROOT=/public/Project/software/download/gromacs/gcc/install (high version gcc path 11.4.0)

$NEW_GLIBC_DIR/lib/ld-linux-x86-64.so.2 --library-path $NEW_GLIBC_DIR/lib:$GCCROOT/lib:$GCCROOT/lib64:/lib64:/usr/lib64:$LD_LIBRARY_PATH opencode

Are there any other available solutions now? ??

xiaoxinbioinfo avatar Jan 08 '26 09:01 xiaoxinbioinfo

Are you using HPC? I think some HPCs are running a CentOS system with old packages, so OpenCode can't be installed or run on them. I have no solution for now so I code on macOS and push them to HPC for computing.

NinhGhoster avatar Jan 08 '26 14:01 NinhGhoster

Same

[root@ vmXXXXXX optmeb.com]# opencode
opencode: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by opencode)
opencode: /lib64/libc.so.6: version `GLIBC_2.24' not found (required by opencode)
opencode: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by opencode)
[root@ vmXXXXXX optmeb.com]# uname -a
Linux vmXXXXXX 4.19.113-300.el7.x86_64 #1 SMP Mon Mar 30 21:50:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@vmXXXXXX vmXXXXXX]#

bivex avatar Jan 12 '26 10:01 bivex

same problem !

GritLs avatar Jan 14 '26 10:01 GritLs