apache一个罕见的错误

apache一个罕见的错误

大家好,php+apache+mysql编译php时候出现如下错误,请问版主如何处理?编译其它的东东没有错误或提示!

Installing PEAR environment:      /usr/local/php/share/pear/
/usr/src/php/sapi/cli/php: error while loading shared libraries: /usr/local/lib/libgd.so.2: cannot restore segment prot after reloc: Permission denied
make[1]: *** [install-pear-installer] Error 127
make: *** [install-pear] Error 2

注:/usr/local/lib/libgd.so.2有这个文件。

php的配置
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local --with-png-dir=/usr/local --with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local --with-gd=/usr/local  --enable-libxml --with-libxml-dir=/usr/local --with-zend-vm=CALL --enable-zend-multibyte --disable-ipv6 --with-layout=GNU --with-config-file-path=/usr/local/php/etc --disable-debug
关闭SELINUX...


QUOTE:
原帖由 Bendy 于 2008-1-8 11:41 发表
关闭SELINUX...

谢谢,我是新手,如何关闭selinux?


[Copy to clipboard] [ - ]
CODE:
vi /etc/sysconfig/selinux

谢谢二楼及四楼的兄弟。问题解决了。