小软大众

原创软件,软件使用技巧,技术分享

cannot restore segment prot after reloc: Permission denied

Linux下执行程序时发生错误: cannot restore segment prot after reloc: Permission denied
    
   原来这是SELinux搞的鬼,解决办法有两个
   1. 使用chcon 命令
   示例: chcon -t texrel_shlib_t /usr/local/rsi/idl_6.1/bin/bin.linux.x86/*.so
   2. 禁止掉SELinux
   更改/etc/sysconfig/selinux 文件的内容为 SELINUX=disabled
Jeff Zhang

posted on 2010-11-19 14:43 jeffer 阅读(31) 评论(0) 编辑 收藏