問題截圖: linux
![](http://static.javashuo.com/static/loading.gif)
解決方案: google
在linux上安裝有些東西時會出現 Permission denied 的狀況:如下就是解決它的辦法之一 spa
編輯/etc/selinux/config,找到這段:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
把 SELINUX=enforcing 註釋掉:#SELINUX=enforcing ,而後新加一行爲:
SELINUX=disabled
保存,關閉。
......
編輯/etc/sysconfig/selinux,找到:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
若是SELINUX已是 SELINUX=disabled,那麼就不用改了,不然就把SELINUX=enforcing 註釋掉,新加一行:
SELINUX=disabled
保存,退出。
若是你碰到其餘相似提示:
cannot restore segment prot after reloc: Permission denied
哪應該是SELinux的問題,能夠考慮把它關閉。
-------------------------------------------------------------------------------------
鬱悶的是.我把SELinux關閉後仍是不行.因而到google上search.發現這個頗有用.
在你保證SElinux 被disable後.還執行下
chcon -t texrel_shlib_t
如: chcon -t texrel_shlib_t /路徑/路徑/名字.so (這個文件視具體執行文件.)