error: cannot restore segment prot after reloc

在centos上有时候会遇到类似这样的错误:
[root@jcwkyl ~]# openssl
openssl: error while loading shared libraries: /opt/gt4/lib/libcrypto_gcc32.so.0: cannot restore segment prot after reloc: Permission denied
这很可能是因为selinux设置成了enforce,把它禁用掉试一下:
[root@jcwkyl ~]# /usr/sbin/setenforce 0
[root@jcwkyl ~]# openssl
OpenSSL> quit
[root@jcwkyl ~]#
要长久禁用selinux,可以修改/etc/sysconfig/selinux文件。

你可能感兴趣的:(centos,gcc)