Error: dl failure on line 893

created at 11-27-2021 views: 82


In the centos system, after installing jdk-8u60-linux-i586.tar.gz, after configuring the java environment variables in .bash_profile and /etc/profile, restart the server, enter java, and display an error message for:

Error: dl failure on line 893
Error: failed /usr/local/java/jdk1.8.0_60/jre/lib/i386/client/, because /usr/local/java/jdk1.8.0_60/jre/lib/i386/client/libjvm. so: cannot restore segment prot after reloc: Permission denied


This is caused by the security mechanism of selinux. To edit the configuration file of the file selinux, the command is:

vim /etc/selinux/config




SELINUX=disabled reboot

After the restarting the server, check again, it will be OK.

created at:11-27-2021
edited at: 11-27-2021: