Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

It seems I accidentally removed dev-libs/mpc instead of media-sound/mpc. Now I can't compile anything (including a replacement dev-libs/mpc) because in doing so I apparently murdered GCC.

How does one fix something like this?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

There's a chance if your current linked library version matches the one in stage3 archives,

Download the current stage3 files, extract it, and copy the libmpc* to /usr/lib

(confirm all needed files with qlist command)

Then re-emerge dev-libs/mpc with emerge, which will replace the copied libmpc files.

share|improve this answer
    
Thanks! I ended up discovering a thing called Tinderbox which is basically a binary repo (see my answer), and then the process was pretty much exactly as you describe to get a compiled version back :) –  Mala Sep 6 '12 at 0:34
add comment

Phew, not so bad after all. Recording here for posterity, and for the next time I do this.

  1. edit make.conf, add the line: PORTAGE_BINHOST="http://tinderbox.dev.gentoo.org/default-linux/amd64/"
  2. sync the new repo: emerge --sync
  3. install binary version: emerge -av --binpkgonly --usepkgonly dev-libs/mpc
  4. compile source version: emerge -av dev-libs/mpc
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.