Help answer threads with 0 replies.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 11-04-2006, 09:26 PM   #1
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
deleted /usr/local/include

so i accidentally ran rm -r on /usr/local/include. im wondering if theres anyway to restore this. a portuprage -raf perhaps?

will this work, and if not, is there anyway i can save this installation. as it is i cant install jack didly...
Old 11-04-2006, 10:09 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658
Usually the /usr/local hierarchy is reserverd for things you install yourself. A distro isn't supposed to touch it and if it is in it's own partition, even a fresh install won't write to it.

If you are missing some include file there, you probably have the tarball you used to install it. Mine only has 3 files in it dealing with DivX headers. I doubt you'll miss anything.
Old 11-05-2006, 05:18 AM   #3
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
If you had installed many packages from ports then I am afraid, you may have done serious damage to your system because installing from ports results in most packages and their config files being placed in /usr/local/*. /usr/local/include would contain the header files of the apps you installed using ports, so I think you would have to reinstall your ports from scratch. I am not sure how you go about this, but maybe take a look at your package database so that you know which packages to reinstall and then use portinstall or "make install clean" from your the appropriate subdirectory in /usr/ports.

Last edited by reddazz; 11-05-2006 at 05:21 AM.
Old 11-05-2006, 09:44 AM   #4
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Original Poster
Rep: Reputation: 30
yeah, thats what i figured was going on. portupgrade -raf has failed twice (nothing to do with /usr/local/incude/, more just weird happenings) now but this time everything is going smoothly. i just wanted to confirm what i thought was going on. thanks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
making files available in /usr/local/bin and /usr/sbin reakinator Linux - Newbie 1 10-14-2006 06:09 PM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 08:55 PM
/usr/local/include deleted.... HappyDude Fedora 5 11-02-2004 02:01 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 10:21 AM
/usr/local folder contents accidently deleted jshaikh Linux - Newbie 1 07-12-2003 02:55 PM

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration