LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   deleted /usr/local/include (https://www.linuxquestions.org/questions/%2Absd-17/deleted-usr-local-include-498704/)

Ha1f 11-04-2006 08:26 PM

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...

jschiwal 11-04-2006 09:09 PM

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.

reddazz 11-05-2006 04:18 AM

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.

Ha1f 11-05-2006 08:44 AM

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.


All times are GMT -5. The time now is 12:26 PM.