While trying to install IMAGICK and tried following the following tutorial. It failed now I can't run any SUDO or VIM commands.
How to unintall Dos2UNIX converter
https://www.bullten.com/knowledgebase/33/Install-Imagick-Maldet-and-net2ftp-in-CWP.html*****************The installation failed with the following*******************
[root@cwp ~]# dos2unix /usr/local/cwpsrv/htdocs/resources/scripts/install_imagick
dos2unix: converting file /usr/local/cwpsrv/htdocs/resources/scripts/install_imagick to Unix format ...
[root@cwp ~]# sh /scripts/install_imagick
CWP Imagick Installer
################################
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.us.oneandone.net
* epel: mirror-mci.yuki.net.uk
* extras: mirror.grid.uchicago.edu
* updates: mirror.team-cymru.com
varnishcache_varnish5/x86_64/signature | 836 B 00:00:00
varnishcache_varnish5/x86_64/signature | 1.0 kB 00:00:00 !!!
varnishcache_varnish5-source/signature | 836 B 00:00:00
varnishcache_varnish5-source/signature | 1.0 kB 00:00:00 !!!
Package ImageMagick-6.9.10.68-7.el7_9.x86_64 already installed and latest version
Package ImageMagick-devel-6.9.10.68-7.el7_9.x86_64 already installed and latest version
Package ImageMagick-perl-6.9.10.68-7.el7_9.x86_64 already installed and latest version
Nothing to do
--2024-06-15 22:12:56--
http://static.cdn-cwp.com/files/php/pecl/imagick-3.1.0RC2.tgzResolving static.cdn-cwp.com (static.cdn-cwp.com)... 151.80.90.199, 198.27.104.40, 137.74.148.116, ...
Connecting to static.cdn-cwp.com (static.cdn-cwp.com)|151.80.90.199|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 93264 (91K) [application/octet-stream]
Saving to: ‘imagick-3.1.0RC2.tgz’
100%[=======================================================================================================================================================================================================>] 93,264 274KB/s in 0.3s
2024-06-15 22:12:57 (274 KB/s) - ‘imagick-3.1.0RC2.tgz’ saved [93264/93264]
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
ln: failed to create symbolic link ‘/usr/local/include/ImageMagick’: File exists
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20190902
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... found in /usr/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.9.10 Q16
checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h
make: *** No rule to make target `clean'. Stop.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
extension=imagick.so
PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/mcrypt.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/mcrypt.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/mcrypt.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Imagick NOT Installed !
[root@cwp ~]# sudo apt-get update
sudo: apt-get: command not found
[root@cwp ~]# vim new_project.c
-bash: vim: command not found
[root@cwp ~]# vimtutor
-bash: vimtutor: command not found