Solved

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

Posted on 2011-02-23
8
779 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 

Author Comment

by:bearclaws75
ID: 34960651
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
ID: 34961061
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
ID: 34961154
Ugh. I can't even reboot!

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

     # sudo reboot
     -bash: sudo: command not found
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Expert Comment

by:upanwar
ID: 34961174
try to execute init 6
0
 

Author Comment

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

Accepted Solution

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

0
 

Author Comment

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

Author Closing Comment

by:bearclaws75
ID: 34988614
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to setup virtualization in Redhat? 4 42
SSH setup on ASA 5505 17 122
Shrink Linux Swap File Size CentOS 10 72
VPN, Squid-  unable to log https requests 5 111
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

734 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