LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 11-07-2010, 06:29 AM   #1
pataprout
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
Question /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 .
 
Old 11-07-2010, 12:26 PM   #2
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
What distribution are you working with?
 
Old 11-07-2010, 12:33 PM   #3
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by SilverBack View Post
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.

Last edited by stress_junkie; 11-07-2010 at 12:37 PM.
 
Old 11-07-2010, 03:52 PM   #4
pataprout
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Original Poster
Rep: Reputation: 0
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...
 
  


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
Help! Accidentally bombed /usr/lib/ 12346 General 5 03-22-2008 05:14 AM
Help! Accidentally bombed /usr/lib/ 12346 Linux - General 4 03-21-2008 06:33 PM
Just deleted /usr/lib/pkgconfig by accident. Hunter2 Slackware 3 06-25-2006 07:15 PM
7.2 Redhat - accidentally deleted /lib gedi1 Linux - Software 2 02-27-2004 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

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

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