分类: C/C++
2010-09-30 11:06:24
如果默认打开selinux,而应用程序又调用了动态库,则执行时会报错
报错信息,.....
[xxxx@localhost bin]$./i_memory
./i_memory: error while loading shared libraries: /home/xxxx/lib/lib ini.so: cannot restore segment prot after reloc: Permission denied
解决办法有两个
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