For the sake of clarity this is the log I get upon installation.
selecting download node...
--2021-02-10 19:16:13-- http://158.247.208.19/install/3/imagemagick-ols.sh
Connecting to 158.247.208.19:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5664 (5.5K) [application/octet-stream]
Saving to: 'imagemagick-ols.sh'
0K ..... 100% 709M=0s
2021-02-10 19:16:13 (709 MB/s) - 'imagemagick-ols.sh' saved [5664/5664]
selecting download node...
http://128.1.164.196
selecting download node...
cat: /etc/redhat-release: No such file or directory
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
lsphp74-dev is already the newest version (7.4.15-1+focal).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
imagemagick is already the newest version (8:6.9.10.23+dfsg-2.1ubuntu11.2).
libmagick++-dev is already the newest version (8:6.9.10.23+dfsg-2.1ubuntu11.2).
libmagickwand-dev is already the newest version (8:6.9.10.23+dfsg-2.1ubuntu11.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
--2021-02-10 19:16:35-- http://128.1.164.196/src/imagick-3.4.4.tgz
Connecting to 128.1.164.196:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 253434 (247K) [application/octet-stream]
Saving to: 'imagick-3.4.4.tgz'
0K .......... .......... .......... .......... .......... 20% 368K 1s
50K .......... .......... .......... .......... .......... 40% 369K 0s
100K .......... .......... .......... .......... .......... 60% 731K 0s
150K .......... .......... .......... .......... .......... 80% 751K 0s
200K .......... .......... .......... .......... ....... 100% 11.8M=0.4s
2021-02-10 19:16:36 (603 KB/s) - 'imagick-3.4.4.tgz' saved [253434/253434]
/usr/local/lsws/lsphp74/bin/phpize: line 61: /usr/bin/sed: No such file or directory
/usr/local/lsws/lsphp74/bin/phpize: line 62: /usr/bin/sed: No such file or directory
/usr/local/lsws/lsphp74/bin/phpize: line 63: /usr/bin/sed: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
/usr/local/lsws/lsphp74/bin/phpize: line 154: /usr/bin/sed: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
autoheader: error: AC_CONFIG_HEADERS not found in configure.ac
make: *** No targets specified and no makefile found. Stop.
Gracefully shutting down php-fpm . done
Starting php-fpm [10-Feb-2021 19:16:38] NOTICE: PHP message: PHP Warning: Module 'imagick' already loaded in Unknown on line 0
done
[OK] Send SIGUSR1 to 151820