GRPC - shtool does not exist or is not executable in Ubuntu

Avatar
H

Henrik Lindqvist

Infrastructure & Linux SRE••
7580Views
5mRead
0Reactions

Hello guys, in this article, I will show you how to install the google GRPC extension into your server.

When I run the command, it will give me the following error-

[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. So let's do:

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

Sometimes the pecl config-set does not work due to a known bug. Then running the following command will fix your problem.

pear config-set temp_dir /root/tmp

I hope, it will fix your problem.

Connect with KoderSolution 🚀

Master modern software engineering, scalable architectures, and advanced backend systems.

What's your setup?What's your production setup for this scenario? Have you encountered similar architectural bottlenecks or edge-case gotchas?
Henrik Lindqvist
H
Written by•Infrastructure & Linux SRE

Henrik Lindqvist

Runs small, hardened Docker containers and Alpine builds. Likes automated backups, Terraform scripts, and keeping server configs reproducible.

React to this article

Recommended Articles

View all articles