What Do I Do If an Error Message Indicating That the glibc Version Is Too Early Is Displayed When MindStudio IDE Is Started?

Symptom

When MindStudio IDE is started on CentOS 7.6, error message "Error : failed /home/MindStudio/jbr/lib/server/libjvm.so, because /lib64/libm.so.6:version 'GLIBC_2.27' not found (required by /home/MindStudio/jbr/lib/server/libjvm.so)" is displayed, as shown in the following figure.

Possible Cause

The glibc version in the system is earlier than 2.27, so the jbr cannot run properly.

Solution

If you install MindStudio as a non-root user, you may need to use the privilege escalation commands. In this case, obtain the required sudo permissions. After the installation is complete, cancel the permissions related to high-risk commands. Otherwise, sudo privilege escalation risks exist.

  1. Delete the jbr folder from the installation directory.
  2. Before installing the JDK, run the following command to check whether Java exists in the system:
    which java
    If the related path is returned, Java exists. Run the java -version command to check whether the Java version is 11. If no, run the following command to install the JDK:
    sudo yum install -y java-11-openjdk
  3. If there are two or more Java versions, run the following command to switch the versions:
    sudo alternatives --config java

    Then, select the option with version 11. Run the java -version command to check the Java version. If the Java version is 11, the switchover is successful.

After the installation is complete, JBR-related functions may be restricted.