GLIBC-2.27 not found

已回答

I'm using IntelliJ IDEA 2025.2 on CentOS 7.9.

Upon startup, I encounter the following error: 

Cannot start the runtime

Caused by:
 0: Failed to load 'libjvm.so'
 1: /usr/lib64/libm.so.6: version `GLIBC_2.27' not found (required by /local/***/ideaIC-252.223892.409/jbr/lib/server/libjvm.so)

I don't have root permissions, but I do have access to glibc-2.27. I tried setting LD_LIBRARY_PATH and modifying idea's rpath, but neither approach worked.

Is there any workaround or recommended solution for this situation?

0

Unfortunately, this workaround doesn't apply. 

The linked solution addresses a JDK mismatch, but my logs confirm that the bundled JetBrains Runtime (JBR) is already being used.

0
How did you manage to update/install GLIBC 2.27 in CentOS 7.9? What is the output of "ldd --version"?
0

I downloaded the glibc 2.27 source code and compiled it to /local/***/glibc2.27. 

I set LD_LIBRARY_PATH to /local/***/glibc2.27:$LD_LIBRARY_PATH and also used patchelf --set-rpath /local/***/glibc2.27/lib idea. 

And ldd --version reports ldd (GNU libc) 2.17.

0
I'm afraid this can not be easily done without risks. The real problem here is how to update glibc in an EOL OS rather than an IDE issue. I'd suggest you to update the OS to a newer version.

Someone made it in below blog

https://blog.51cto.com/ting0119/13815148
0

I found the solution — I had missed the --set-interpreter step. After adding it, the "glibc 2.27 not found" error no longer appears.

0
Where did you set it?
0

请先登录再写评论。