LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   /usr/lib/pkgconfig content accidentally deleted (https://www.linuxquestions.org/questions/gentoo-87/usr-lib-pkgconfig-content-accidentally-deleted-842855/)

pataprout 11-07-2010 06:29 AM

/usr/lib/pkgconfig content accidentally deleted
 
Hello,

First of all, excuse me for my english, I'm french.

Yesterday, I was creating a symbolic link to /usr/lib/pkgconfig on /usr/local/lib/pkgconfig, my experimentation didn't work (my compilation always failed). So I tried to delete this link, but I have accidentally deleted the content of /usr/lib/pkgconfig (All the *.pc files).

I've seen a similar thread (http://www.linuxquestions.org/questi...cident-458254/) which can solve this problem for Slackware but not in my case (it imply to have /var/log/packages, I have not).

Is there any way to rebuild all theses *.pc files by one command ? Or by multiples command ? I'm running out of ideas.

Thanks you for reading :).

honeybadger 11-07-2010 12:26 PM

What distribution are you working with?

stress_junkie 11-07-2010 12:33 PM

Quote:

Originally Posted by SilverBack (Post 4151968)
What distribution are you working with?

All evidence suggests that he is using Gentoo. (user agent icon and this is posted in the Gentoo forum) Nevertheless it helps if the poster explicitly states the distribution in the post so that we don't have to infer, possibly incorrectly, the distribution in use.

I wonder if it is possible to simply do a portage update to restore the files.

If not then maybe the files could be extracted from a Gentoo installation kit, then do a portage update.

It's been quite a while since I used Gentoo so I'm not sure about these suggestions.

pataprout 11-07-2010 03:52 PM

I'm sorry, yes I'm using Gentoo :)

I found a pseudo-solution with emerge : # emerge -e world (man : Reinstalls all world packages and their dependencies to the current USE specifications while differing from the installed set of packages as little as possible.). It also creates pc files into /usr/lib/pkgconfig for the libraries.

It's not the better solution, but it seems working...


All times are GMT -5. The time now is 02:55 PM.