SERVER MANAGEMENT

shtool does not exist or is not executable

shtool does not exist or is not executable
shtool does not exist or is not executable

shtool does not exist or is not executable

You may be received the error ” shtool does not exist or is not executable ” while using PECL installs. It is because of the /tmp directory is mounted as noexec for security reasons.

For example:

 
[root@server ]# pecl install imagick
downloading imagick-3.4.3.tgz ...
Starting to download imagick-3.4.3.tgz (245,410 bytes)
...................................................done: 245,410 bytes
19 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
shtool at '/var/tmp/imagick/build/shtool' does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.

ERROR: `phpize' failed
[root@server ]#

This issue can be resolved by changing the PECL temp_dir to a new path.

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

Sometimes the pecl config-set does not work due to a known bug. Then run the following command.

 
pear config-set temp_dir /root/tmp

That’s it!

If you like this post and wish to receive more articles from us, please like our FB page: Grepitout

Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.

For more details on our services, please drop us an E-mail at info@grepitout.com

Topics