Cron of wget command is not working

Error: /usr/bin/wget: line 1:
////centos/5/x86_64/wget-1.11.4-3.el5_8.2.x86_64/usr/bin/wget: No such file or directory

Fix: You need to re-install wget and GET packages with "perl-libwww-perl" in the server in order to fix this issue. You can follow the steps mentioned below to do the same:

1. Login to your server as root.

2. Run the following command:

root@server[~]# yum -y reinstall wget perl-libwww-perl

3. Once the above command is executed without any error, the issue should be fixed.

Sometimes, you will get the following error while installing the package "perl-libwww-perl":

Excluding Packages in global exclude list
Finished
No Match for argument: perl-libwww
Nothing to do

In such scenario, you need to install "perl-libwww-perl" using the following command:

root@server [~]# yum -y --disableexcludes=all reinstall perl-libwww-perl

I believe, the above command will execute successfully and your issue should be fixed. Cheers :)

Comments

Popular posts from this blog

SVN: File remains in conflict

HowTo: Enable extended logging for exim

12 tweakings for WHM/cPanel to speed up WordPress