GLIBC_2.18' not found (required by opencode) #3206

Open
opened 2026-02-16 17:39:06 -05:00 by yindo · 5 comments
Owner

Originally created by @NinhGhoster on GitHub (Nov 29, 2025).

Originally assigned to: @kommander on GitHub.

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

Originally created by @NinhGhoster on GitHub (Nov 29, 2025). Originally assigned to: @kommander on GitHub. ### 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 <img width="975" height="925" alt="Image" src="https://github.com/user-attachments/assets/03675a49-21a1-43c8-bde9-736703c7008a" /> ### Operating System CentOS Linux 7 (Core) (GNU/Linux 3.10.0-1160.119.1.el7.x86_64 x86_64) ### Terminal Cursor on Windows
yindo added the opentuibug labels 2026-02-16 17:39:06 -05:00
Author
Owner

@xiaoxinbioinfo commented on GitHub (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@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 commented on GitHub (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@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? ??
Author
Owner

@NinhGhoster commented on GitHub (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.

@NinhGhoster commented on GitHub (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.
Author
Owner

@bivex commented on GitHub (Jan 12, 2026):

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 commented on GitHub (Jan 12, 2026): 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]# ```
Author
Owner

@GritLs commented on GitHub (Jan 14, 2026):

same problem !

@GritLs commented on GitHub (Jan 14, 2026): same problem !
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#3206