Author Topic: How to uninstall Dos2Unix Converter and restore VIM commands  (Read 522 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
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.tgz
Resolving 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
-The Shoutcast Guru

Radio Streaming Since 2013, RadioDJ since 2016, and Linux-CWP since 2020.

Offline
*****
Re: How to uninstall Dos2Unix Converter and restore VIM commands
« Reply #1 on: June 15, 2024, 11:52:45 PM »
EL (enterprise Linux) distributions don't use Debian apt commands. You would need to use yum or dnf to manage your software.

Offline
*
Re: How to uninstall Dos2Unix Converter and restore VIM commands
« Reply #2 on: June 16, 2024, 05:17:16 AM »
Hey Overseer,

Your explaination went over my head. Zero linux knowledge other than reseacrh/copy paste.

I am trying to install IMAGICK using this tutorial. 

I know zero oficial training on linux and can simply copy paste code. I am usually able to copy and paste most codes and they execute fine,

but since the installing the dos2unix converter using yum command, Here(https://www.bullten.com/knowledgebase/33/Install-Imagick-Maldet-and-net2ftp-in-CWP.html),

 Is my assumption that the dos2unix converter is automatic or code change permenant incorrect?
if I do not use the dos2unix command, will it not automatically convert the command to unix, are files not permanently converted? I should be able to execute all my commands normally without the dos2unix command?

i am trying to install imagick throught ssh because I do not know nor can i find a tutorial for doing so using the CWP GUI

install imagick on CWP tutorial
https://www.linuxhelp.com/how-to-install-imagemagick-in-centos-web-panel

am able to execute the following successfully
[root@cwp ~]# cd /scripts/
[root@cwp scripts]# ll
the following command returns with this

[root@cwp scripts]# vim install_imagick
-bash: vim: command not found

Thanks for replying


« Last Edit: June 16, 2024, 05:37:56 AM by linuxnewb2020 »
-The Shoutcast Guru

Radio Streaming Since 2013, RadioDJ since 2016, and Linux-CWP since 2020.

Offline
*****
Re: How to uninstall Dos2Unix Converter and restore VIM commands
« Reply #3 on: June 16, 2024, 05:54:49 PM »
I'm sorry, I don't know how to help you out of your predicament given your knowledge & experience level. You may want to consider hiring a sysadmin or seeing if paid support would help you out of your jam.

Offline
*
Re: How to uninstall Dos2Unix Converter and restore VIM commands
« Reply #4 on: June 17, 2024, 04:16:18 PM »
You assumed I was on RHEL, I did some research, I Didn't understand you cause I've only dealt with CentOS7, Apache, Running PHP 7.4, so I'm assuming the command differ from RHEL. althought according to the following article the commands are kind of the same.

"""Red Hat Enterprise Linux (RHEL) and CentOS are closely related operating systems. CentOS is a free, community-supported version of RHEL, while RHEL is a commercial distribution that comes with support from Red Hat. As a result of their close relationship, the commands in RHEL and CentOS are largely the same. Both distributions use the same package manager (YUM or DNF) and have similar directory structures and configurations.

However, there can be some differences between RHEL and CentOS in terms of the versions of software packages included, updates, and support. RHEL typically receives updates and security patches earlier than CentOS due to its commercial nature. Additionally, as CentOS is community-supported, it may lag behind RHEL in terms of updates and patches.

In terms of commands, you should generally expect the commands to be the same between RHEL and CentOS, as CentOS aims to be a free, binary-compatible version of RHEL. Any differences that do exist are likely to be related to the specific versions of packages or configurations that are included in each distribution."""""

 Yea, i have basic level one IT experience, I'll consider moving it up to level two a couple months down the road.... that only a maybe. Nothing is broken right now, I'll wait it out to see if someone is willing to reach out or I'll read something to self fix. I've gotten myself out of a couple jams, I post my self fixes on here when I am Successful and for record keeping for my future reference, cause I'm sure Ill try something and it'll jack it up, before, but since I don't run my server for service to others. I would rather reinstall and restore from backup and deal with those headaches then. Contact support? really. LOL, then I wouldn't come to this forum, i would have paid for RHEL and if i had the money for that I would not be on CWP. Meantime I'll see what help tech help I can get or until something else runs into same issue and hopefully they post their fix. Thanks anyway.


My question is simple, If its not simple I would like to direction to better address my question.

How to remove/purge Dos2Unix after an Yum install?
« Last Edit: June 17, 2024, 04:30:52 PM by linuxnewb2020 »
-The Shoutcast Guru

Radio Streaming Since 2013, RadioDJ since 2016, and Linux-CWP since 2020.