Skip to content

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

Closed

Description

@NinhGhoster

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 29, 2025
  2. GradientLive commented on Jan 8, 2026

    @GradientLive

    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? ??

  3. NinhGhoster commented on Jan 8, 2026

    @NinhGhoster
    Author

    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.

  4. bivex commented on Jan 12, 2026

    @bivex

    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]#
    
    
  5. GritLs commented on Jan 14, 2026

    @GritLs

    same problem !

  6. pedropombeiro commented on Jan 25, 2026

    @pedropombeiro

    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
  7. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions