2009年11月18日星期三

SELinux 還是很害人的

編譯完php后,make ok

make test 報錯如下:

/root/packages/php-5.2.11/sapi/cli/php: error while loading shared libraries: /usr/local/libpng2/lib/libpng12.so.0: cannot restore segment prot after reloc: Permission denied
make: [test] Error 127 (ignored)

跳過make install 也包類似的錯, 啥問題呢?

原來安裝這部機器的SELinux沒有disable,

將之disable掉 make test ok

make install ok

記錄之, 看來SElinux這個東西還是很害人的.

當然話說回來, 這個東西是security方面要求的, 但是現在還到不了那個高度呢, 先把應用跑 起來再說了

没有评论:

发表评论