You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GLIBC_2.18' not found (required by opencode) #4908
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
Operating System
CentOS Linux 7 (Core) (GNU/Linux 3.10.0-1160.119.1.el7.x86_64 x86_64)
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 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.
[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]#
Activity
GradientLive commentedon Jan 8, 2026
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@latestDuring 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.
Are there any other available solutions now? ??
NinhGhoster commentedon Jan 8, 2026
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.
bivex commentedon Jan 12, 2026
Same
GritLs commentedon Jan 14, 2026
same problem !
pedropombeiro commentedon 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:
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.