Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > accidentally rm -rf'd /usr/local/lib

accidentally rm -rf'd /usr/local/lib
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2002
Status: Offline
Reply With Quote
Mar 1, 2003, 03:11 PM
 
Anyone have any good advice? I was wiping a directory and realized that I was in the *wrong* directory. I wiped /usr/local/lib completely. Most stuff seems to work, but I'm definitely not going to reboot ...
     
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Mar 1, 2003, 03:26 PM
 
I seem to have some files there from GimpPrint and others...I am not sure if this helps you or not, but I have the following files in there:

charset.alias
gimp
libSDL-1.2.0.0.6.dylib
libSDL-1.2.0.dylib
libSDL.a
libSDL.dylib
libSDL.la
libSDLmain.a
libdl.0.dylib
libdl.a
libdl.dylib
libfaad.0.0.0.dylib
libfaad.a
libfaad.la
libgimpprint.1.0.3.dylib
libgimpprint.1.0.4.dylib
libgimpprint.1.1.0.dylib
libgimpprint.1.dylib
libgimpprint.a
libgimpprint.dylib
libgimpprint.la
libmp3lame.a
libmp3lame.la
libogg.0.2.0.dylib
libogg.0.dylib
libogg.a
libogg.dylib
libogg.la
libpng.2.1.0.12.dylib
libpng.2.dylib
libpng.3.1.2.1.dylib
libpng.3.dylib
libpng.a
libvorbis.0.0.1.dylib
libvorbis.0.dylib
libvorbis.a
libvorbis.dylib
libvorbis.la
libvorbisenc.0.0.1.dylib
libvorbisenc.0.dylib
libvorbisenc.a
libvorbisenc.dylib
libvorbisenc.la
libvorbisfile.0.1.0.dylib
libvorbisfile.0.dylib
libvorbisfile.a
libvorbisfile.dylib
libvorbisfile.la
     
JLL
Professional Poster
Join Date: Apr 1999
Location: Copenhagen, Denmark
Status: Offline
Reply With Quote
Mar 1, 2003, 03:43 PM
 
Originally posted by siliconwafer:
Most stuff seems to work, but I'm definitely not going to reboot ...
Why? There aren't any system files in /usr/local
JLL

- My opinions may have changed, but not the fact that I am right.
     
Mac Elite
Join Date: Mar 2001
Status: Offline
Reply With Quote
Mar 1, 2003, 04:23 PM
 
The OS does not use /usr/local. By definition, /usr/local is a place where users install things local to that particular system. You have not damaged any part of Mac OS X itself, but you may have removed parts of other UNIX software that you may have installed (non-fink; fink stores everything in /sw). So you can reboot, etc., and do whatever you need to, and you don't need to reinstall OS X, but you may find that some of your third party UNIX software is broken. It would be good to check that anything that currently exists in /usr/local/bin still works. Other items in /usr/local are most likely the only affected items. There could be others, but since from your post it's evident that you didn't really understand what /usr/local was for, and the further fact that you rm -rf'ed it, I'm going to wager you are not using local libs for anything else.
     
Fresh-Faced Recruit
Join Date: Jan 2002
Status: Offline
Reply With Quote
Mar 1, 2003, 04:32 PM
 
Originally posted by piracy:
There could be others, but since from your post it's evident that you didn't really understand what /usr/local was for, and the further fact that you rm -rf'ed it, I'm going to wager you are not using local libs for anything else.
Aha, thank you. You are correct, I really did not have any idea of what /usr/local is for ... I had a hunch that it was only for software installed locally on the system, but wasn't 100% sure if OS X itself had files in that location. I did reboot a bit ago and there were no problems. I'll have to reinstall vim and a few other apps, but everything else seems to be fine. Thanks for your help
     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Mar 1, 2003, 04:43 PM
 
bx
libmenu.dylib
libpanel.a
libcurses.dylib
libmenu.dylib.5
libpanel.dylib
libform.a
libmenu.dylib.5.2
libpanel.dylib.5
libform.dylib
libncurses.a
libpanel.dylib.5.2
libform.dylib.5
libncurses.dylib
terminfo
libform.dylib.5.2
libncurses.dylib.5
libmenu.a
libncurses.dylib.5.2

This is what I have in /usr/local/lib. The only UNIX stuff I have installed is ncurses and BitchX.
     
Senior User
Join Date: May 2001
Location: Boston, MA
Status: Offline
Reply With Quote
Mar 1, 2003, 07:36 PM
 
/usr/local is empty for me and /usr/local/lib doesn't exsist so I am assuming you aren't missing anything importaant.
     
Mac Elite
Join Date: Aug 2001
Location: Capitol City
Status: Offline
Reply With Quote
Mar 1, 2003, 09:23 PM
 
you might consider aliasing that command to something like "mv /tmp" would be safer.

link to hint
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 05:47 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2