View previous topic :: View next topic |
Author |
Message |
slougi Apprentice
Joined: 12 Nov 2002 Posts: 222 Location: Oulu, Finland
|
Posted: Sun Jan 12, 2003 7:30 am Post subject: How to recover from a broken gcc installation |
|
|
Ok, gcc-3.2.1-r6 completely wrecked my gcc install. g++ was working to some extend but I did not seem to have gcc on my computer _at all_. Here is what I did to fix it:
1. Reboot from livecd.
2. Bring up networking according to installation instructions.
3. Mount partitions according to installation instructions. Don't forget swap space.
4. Back up /mt/gentoo/etc/.
5. Untar the stage1 tarball in mnt/gentoo/.
6. Not sure if this is needed: Mask gcc-3.2.1-r6 in package.mask, just add a line like this in
the end: "=sys-devel/gcc-3.2.1-r6"
7. # cd /usr/portage
# scripts/bootstrap.sh
8. Restore mnt/gentoo/etc/
9. Reboot
10. Cross fingers
Basically what we do is rebootstrap, to build gcc again using the gcc version on the livecd. Some programs seem to complain about missing glibc libraries, I had to reinstall glibc after the reboot. Luckily gnome et all did work, only app that seemed to have problems was gaim-cvs.
Of course, instead of the gentoo livecd you could use knoppix, so you can have a functional system while bootstrapping. I haven't tried this, but it should work. Should also work for a normal installation, fyi.
Btw, if anything is completely wrong with these instructions please point it out for me, I am a Linux newbie in general. Haven't used it for more than a month or two
Edit: Oops, forgot a few things |
|
Back to top |
|
|
slougi Apprentice
Joined: 12 Nov 2002 Posts: 222 Location: Oulu, Finland
|
Posted: Sun Jan 12, 2003 8:37 am Post subject: |
|
|
Hmm apparently reinstalling glibc after reboot was not needed after all
It would have been enough to remerge the offending application. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|