The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how can i check in csh if command found or not found ? umen Shell Programming and Scripting 2 03-03-2007 03:38 PM
no VGs found b_manu78 AIX 3 10-11-2005 02:13 AM
cc and gcc not found asif iqbal UNIX for Dummies Questions & Answers 3 02-26-2005 02:58 AM
ksh: cvs: not found ?? rein UNIX for Advanced & Expert Users 2 01-05-2005 01:01 AM
MAC not found? merlin UNIX for Dummies Questions & Answers 1 05-15-2003 06:34 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-04-2000
Registered User
 

Join Date: Sep 2000
Location: UTAH
Posts: 27
Stumble this Post!
Exclamation

I made the fatal mistake of rename the usr directory.

I cannot run any commands due to the fact that ld.so.1 is in usr/lib/--and it doesn't exist

How can I recover my system?
Forum Sponsor
  #2 (permalink)  
Old 10-04-2000
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,288
Stumble this Post!
There are a number of ways to fix this. It depends on which utilities are using the shared libs. Try the cat()
built in like this, perhaps:

cat >> /etc/ldconfig
/current/path/of/your/lib/dir
#or whatever the name of your ldconfig files is
#on your system.
^D^D (control D twice)

The command above will use cat to 'cat' a temporary
path and append it to the LDCONFIG file (your
system has it's filename, whatever for ldconfig.conf).

Then run the command ldconfig() (or similar) and
rebuild your LD table.

That is one possible fix. There are others, including
changing the environment variable (if you system uses them for LDPATH, etc.)

You can also just boot the system off a boot disk, mount the
filesystems and rename or relink. Then reboot.

Don't panic

Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0