shtool at '/tmp/pear/temp/xdebug/build/shtool' does not exist or is not executable.

[root@test log]# pecl install xdebug
downloading xdebug-2.3.2.tgz ...
Starting to download xdebug-2.3.2.tgz (266,287 bytes)
.............................done: 266,287 bytes
74 source files, building
running: phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
shtool at '/tmp/pear/temp/xdebug/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

mount -o remount,exec /tmp/

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

mount -o remount,noexec /tmp/