[英]pecl install apc isn't working. shtool does not exist
I am an absolute newbie…didn't learn about SSh till an hour ago and got my first VPS 2 hours ago. 我是一个绝对的新手......直到一小时前才学习SSh并且在2小时前得到了我的第一个VPS。 Still learning!
还在学习!
So I'm installing MediaWiki and need to add APC extension. 所以我正在安装MediaWiki,需要添加APC扩展。 But having a lil trouble.
但是遇到了麻烦。 Any ideas/tips?
有什么想法/提示吗?
[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.`
Remove noexec flag from /var/tmp directory use the following command 从/ var / tmp目录中删除noexec标志使用以下命令
mount -o remount,exec /var/tmp/
You can use the same command to add the noexec flag back 您可以使用相同的命令添加noexec标志
mount -o remount,noexec /var/tmp/
Try this, copied from http://blog.litespeedtech.com/2013/04/05/trouble-shooting-pecl-install-doesnt-work/ 试试这个,复制自http://blog.litespeedtech.com/2013/04/05/trouble-shooting-pecl-install-doesnt-work/
A more appropriate workaround is to point PECL's
temp_dir
to a partition or path that allows execution:更合适的解决方法是将PECL的
temp_dir
指向允许执行的分区或路径:mkdir /root/tmp pecl config-set temp_dir /root/tmp
or
要么
pear config-set temp_dir /root/tmp
(There is a known bug where
pecl config-set
does not work butpear config-set
does. If this is the case for you, simply use the PEAR config command. PECL will use PEAR when doing the install.)(有一个已知的错误,其中
pecl config-set
不起作用,但是pear config-set
。如果是这种情况,只需使用PEAR config命令.PECL将在安装时使用PEAR。)This workaround preserves any security benefit from having /tmp set as noexec, but also allows PECL installs.
这种解决方法保留了/ tmp设置为noexec的任何安全性好处,但也允许PECL安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.