GLIBC_2.18' not found (required by opencode)
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
Operating System
CentOS Linux 7 (Core) (GNU/Linux 3.10.0-1160.119.1.el7.x86_64 x86_64)
Terminal
Cursor on Windows
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? ??
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.
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]#
same problem !