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 07:38 PM
no VGs found b_manu78 AIX 3 10-11-2005 06:13 AM
cc and gcc not found asif iqbal UNIX for Dummies Questions & Answers 3 02-26-2005 06:58 AM
ksh: cvs: not found ?? rein UNIX for Advanced & Expert Users 2 01-05-2005 05:01 AM
MAC not found? merlin UNIX for Dummies Questions & Answers 1 05-15-2003 10:34 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-04-2000
SmartJuniorUnix SmartJuniorUnix is offline
Registered User
  
 

Join Date: Sep 2000
Location: UTAH
Posts: 27
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?
  #2 (permalink)  
Old 10-04-2000
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,754
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

Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0