Pecl安装apc不工作.Shtool不存在


pecl install apc isn't working. shtool does not exist

我是一个绝对的新手,直到一个小时前才知道SSh,两个小时前才得到我的第一个VPS。还是学习!

所以我正在安装MediaWiki,需要添加APC扩展。但是有点小麻烦。有什么想法/建议?

[root@www ~]# pecl install apc`
downloading APC-3.1.13.tgz ...
Starting to download APC-3.1.13.tgz (171,591 bytes)
.....................................done: 171,591 bytes
55 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
shtool at '/var/tmp/APC/build/shtool' does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.`

使用以下命令从/var/tmp目录删除noexec标志

/var/tmp/

您可以使用相同的命令将noexec标志添加回

试试这个,从http://blog.litespeedtech.com/2013/04/05/trouble-shooting-pecl-install-doesnt-work/

更合适的解决方法是将PECL的temp_dir指向A允许执行的分区或路径:

mkdir /root/tmp
pecl config-set temp_dir /root/tmp

pear config-set temp_dir /root/tmp

(有一个已知的bug,其中pecl config-set不工作,但pear config-set可以。如果是这种情况,只需使用PEAR配置命令。PECL将在安装时使用PEAR。)

这个解决方法保留了将/tmp设置为noexec,但也允许PECL安装。