LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 11-04-2006, 08:26 PM   #1
Ha1f
Member
 
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, 09:09 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 04:18 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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 04:21 AM.
 
Old 11-05-2006, 08:44 AM   #4
Ha1f
Member
 
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.
 
  


Reply



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 05:09 PM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM
/usr/local/include deleted.... HappyDude Fedora 5 11-02-2004 01:01 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
/usr/local folder contents accidently deleted jshaikh Linux - Newbie 1 07-12-2003 01:55 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 10:59 AM.

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