Solved

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

Posted on 2011-02-23
8
703 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
 
LVL 12

Expert Comment

by:upanwar
ID: 34961174
try to execute init 6
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to start Neon 20 89
Codiing Non-Existent Links 4 68
Check if a filw is immutable for a certain amount of time 6 49
networking details on centos 6.6 4 53
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

863 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

26 Experts available now in Live!

Get 1:1 Help Now