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
Solved

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

Posted on 2011-02-23
8
748 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
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

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 demonstrate how we can use conditional statements using Python.
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…
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.:

856 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