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

Jimmy Wang picture Jimmy Wang · Mar 28, 2013 · Viewed 10.3k times · Source

I am an absolute newbie…didn't learn about SSh till an hour ago and got my first VPS 2 hours ago. Still learning!

So I'm installing MediaWiki and need to add APC extension. 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.`

Answer

HaniGamal picture HaniGamal · Jun 27, 2013

Remove noexec flag from /var/tmp directory use the following command

mount -o remount,exec /var/tmp/

You can use the same command to add the noexec flag back

mount -o remount,noexec /var/tmp/