| 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
这个问题参考了以下链接
|
Linux下执行程序时发生错误: cannot restore segment prot after reloc: Permission denied
最新推荐文章于 2025-03-26 16:27:08 发布
本文介绍了在Linux环境下因SELinux安全策略导致程序运行时出现“cannot restore segment prot after reloc: Permission denied”错误的原因及两种解决方案:一是使用chcon命令调整文件的安全上下文;二是禁用SELinux。
4758

被折叠的 条评论
为什么被折叠?



