Using Cursor CLI (Agent) or Opencode on old Linux (like CentOS7) without upgrading

Greetings everyone.

I have been working with Cursor IDE for a long time, and thanks to the publication of Cursor CLI and Opencode, I’d like to try something new. However, I am currently working on an old Linux server (CentOS7), which doesn’t have new glibc libraries (2.17, and >=2.28 needed). I found that some other users on the forum have similar problems.

I have no root permission, thus I cannot upgrade the Linux server myself. Therefore, I figured out how to install glibc 2.28 libraries on my personal user directory, and launch Cursor CLI (Opencode) without affecting other applications.

Now I can seamlessly use Cursor CLI and Opencode on my server. Though there are some trivial bugs, they won’t affect the core functions. Also, I just found that this solution has coincidentally solved the issue about installing vLLM on my server.

I have open-sourced my solution on Github: https://github.com/Tao-Yida/cursorcli-glibc-shim. I will be happy if this helps you a little.

If you find it useful, star or fork the repo to make it more powerful!