Cannot restore segment prot after reloc solution problem: solution: Permission denied occurs when you install something on linux: edit/etc/selinux/config in one of the following ways and find This section: # This file controls the state of SELinux on the system. # SELINUX = can take one of these three values: # enforcing-SELinux security policy is enforced. # permissive-SELinux prints warnings instead of enforcing. # disabled-SELinux is fully disabled. SELINUX = e Nforcing comment out SELINUX = enforcing: # SELINUX = enforcing, add a new line: SELINUX = disabled to save and close. ...... Edit/etc/sysconfig/selinux and find: # This file controls the state of SELinux on the system. # SELINUX = can take one of these three values: # enforcing-SELinux security policy is enforced. # permissive-SELinux prints warnings instead of enforcing. # disabled-SELinux is fully disabled. SELINUX = enforcing if SELINUX is already set to SELINUX = disabled, you do not need to change it. Otherwise, you need to comment out SELINUX = enforcing and add a new line: SELINUX = disabled to save, Exit. If you encounter other similar prompts: cannot restore segment prot after reloc: Permission denied which should be SELinux, you can consider disabling it. Which of the following statements is depressing. after SELinux is disabled, it still does not work. so I went to google to search. this is useful. after you guarantee that SElinux is disable. run chcon-t texrel_shlib_t, for example, chcon-t texrel_shlib_t/path/name. so (this file depends on the specific execution file .)