An error occurred while executing the program in Linux: cannot restore segment prot after reloc: Permission denied

Source: Internet
Author: User

When you install eclipse on Linux today, the following error occurs:
Cannot restore segment prot after reloc: Permission denied
* ***. So (this is a file under a path)

Solution

Edit/etc/SELinux/config and find the following link:
# 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

Comment out SELinux = enforcing: # SELinux = enforcing, and add a new line:
SELinux = disabled
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, comment out SELinux = enforcing and add a new line:
SELinux = disabled
Save and exit.

If you encounter other similar prompts:
Cannot restore segment prot after reloc: Permission denied
This should be a problem with SELinux. You can disable it.
Bytes -------------------------------------------------------------------------------------

Sadly, I disabled SELinux but it still didn't work. So I went to Google to search and found this useful.
After you ensure that SELinux is disable, execute
Chcon-T texrel_shlib_t ******. So
For example, chcon-T texrel_shlib_t/path/name. So (this file depends on the specific execution file .)

The above two steps have solved many server problems.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.