Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I broke my gcc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
tmmacleo
n00b
n00b


Joined: 01 Nov 2002
Posts: 1

PostPosted: Fri Nov 01, 2002 9:32 pm    Post subject: I broke my gcc Reply with quote

I would consider myself an intermediate user, but there's still a few things I need to learn. For this reason, and to make a long story short, I currently do not have a compiler. If you could imagine a working setup without a compiler, what advice would you give this poor soul to get it reinstalled? Here's what I've tried so far...

1) I tried an rpm, but that doesn't work... too many dependencies needed (do I need to find those?)

2) I installed gentoo within a temporary directory, chrooted it and built gcc. I then copied everything over to my / directory in the respective places, but no go.

I REALLY need some help with this, I feel naked having linux and no compiler. I'd appreciate any feedback.

-Tom
Back to top
View user's profile Send private message
metalhedd
l33t
l33t


Joined: 30 May 2002
Posts: 692
Location: Ontario Canada

PostPosted: Fri Nov 01, 2002 11:17 pm    Post subject: Reply with quote

There is a portage rescue tarball on the boot CD I believe, or downloadable from here somewhere.... I wish i could give you more details but i've never had to use it... If you search the forums for "unmerge python" I'm sure you'll come across the solution. (assuming that the rescue tarball can restore a compiler. :)
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Nov 02, 2002 2:00 am    Post subject: Reply with quote

No, the portage rescue tarball won't work. Boot from the install disk. Mount your filesystems somewhere as if you were going to reinstall, but do not chroot yet. Look in /var/db/pkg/sys-devel/gcc-[version] for a CONTENTS file. If the version of gcc on the CD you are booting from is different from the one you used to have, you may have to extract this CONTENTS file from the stage tarball instead, in which case booting from the install disk is not really necessary.
Code:
# cat CONTENTS | perl -ne 'split; print ".$_[1]\n" unless -d $_[1]' > /mnt/gentoo/tmp/gccfiles
# chroot /mnt/gentoo /bin/bash
# tar xvjf stage.tbz2 -T /tmp/gccfiles

At this point you should have a working compiler. I would "emerge gcc" at your earliest convenience, to get things nice and clean again. Hope this works for you.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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