Chinaunix首页 | 论坛 | 博客
  • 博客访问: 80794
  • 博文数量: 32
  • 博客积分: 1425
  • 博客等级: 上尉
  • 技术积分: 290
  • 用 户 组: 普通用户
  • 注册时间: 2005-08-12 09:38
文章分类

全部博文(32)

文章存档

2011年(3)

2010年(4)

2007年(1)

2006年(22)

2005年(2)

我的朋友
最近访客

分类: 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

阅读(617) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~