Solved

Linux: how to install perl-IO-Compress & zlib without YUM?!

Posted on 2011-02-23
8
702 Views
Last Modified: 2012-06-27
While trying to fix a "yum update" dependency error, I removed "perl-IO-compress" and "zlib"...and can no longer execute commands.

I get errors like this:

     [root@114070-www1 ~]# ls
     -bash: /bin/ls: No such file or directory

     [root@114070-www1 yum]# mkdir test
     -bash: mkdir: command not found

I tried re-installing the pacakages with yum but (predictably) get this error:

     -bash: /usr/bin/yum: No such file or directory

...how do I resolve this? Help!



ux: how to install perl-IO-Compress & zlib without YUM?!
0
Comment
Question by:bearclaws75
  • 5
  • 3
8 Comments
 

Author Comment

by:bearclaws75
Comment Utility
FYI - these are my PATH and SHELL values:

# echo $SHELL
/bin/bash

# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
0
 
LVL 12

Expert Comment

by:upanwar
Comment Utility
Once reboot your system and then check. Sometimes system do like this.
After reboot If you still face the same issue then we will fix your issue.
0
 

Author Comment

by:bearclaws75
Comment Utility
Ugh. I can't even reboot!

     #  /sbin/reboot
     -bash: /sbin/reboot: No such file or directory

     # sudo reboot
     -bash: sudo: command not found
0
 
LVL 12

Expert Comment

by:upanwar
Comment Utility
try to execute init 6
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:bearclaws75
Comment Utility
same error:
 
    # init 6
    -bash: init: command not found
0
 
LVL 12

Accepted Solution

by:
upanwar earned 500 total points
Comment Utility
Use the power button and do a hardboot with your system.

0
 

Author Comment

by:bearclaws75
Comment Utility
This server is hosting remotely. I'll provide an update once the request to reboot has been completed.
0
 

Author Closing Comment

by:bearclaws75
Comment Utility
This turned out to be a mess. I asked the hosting company to reboot the server and they found that the Hard Drive had been corrupted. This probably explains the original issues I was troubleshooting. Anyways, they had to swap out the drive and restore a system backup and now everything is working.

upanwar - thanks for the reboot tip. If they hadn't rebooted and found the hard drive error, I would have spent hours pulling my hair out trying to resolve things from the command line.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now