Q: After install EMAN2. When run e2.py or other eman2 program. I get error message like: Traceback (most recent call last):

ImportError: /home/eman32/EMAN2/lib/libGLEM2.so: cannot restore segment prot after reloc: Permission denied

Solution: When packaging an application on RHEL or CentOS, you may receive the following error:

cannot restore segment prot after reloc: Permission denied

This is likely due the the SE Linux setting being set to "enforcing" . To Temporarily disable enforcement on a running system

/usr/sbin/setenforce 0

To permanently disable enforcement during a system startup change "enforcing" to "disabled" in /etc/selinux/config and reboot. . By default, CentOS 5 has the SE Linux feature set to "enforcing".

EMAN2/FAQ/UseEman2 CentOS (last edited 2010-03-04 17:12:01 by gtang)