Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stupid me deleted gcc libs... new install? [solved]
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
hcintra
n00b
n00b


Joined: 27 Jan 2005
Posts: 51

PostPosted: Tue Mar 20, 2007 11:06 am    Post subject: Stupid me deleted gcc libs... new install? [solved] Reply with quote

After a long hours trying to finalize gcc upgrade, I decided to delete some remaining libs from the unmerged gcc 3.4.6, but very stupidly instead of deleting the 3.4.6 lib folder, I copied the addres of the top folder and got 4.1.1 libs deleted together...

Now I can't emerge anything, not even ggc back.

Is there a route that would not involve returning to LiveCD?

If I have to resort to LiveCD, what minimal actions should I perform?

I was very happy with my system at this point, because of the gcc upgrade I had done a very good tunning it up.


Last edited by hcintra on Tue Mar 20, 2007 1:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Tue Mar 20, 2007 11:47 am    Post subject: Reply with quote

You can recover this way:


  1. On a filesystem with at least 500 MB free space (e.g. /home/hcintra), do
    Code:
    mkdir /home/hcintra/stage3 && cd /home/hcintra/stage3

  2. get a stage3 tarball for your arch and unpack it:
    Code:
    tar -xjf /path/to/stage3.tar.bz2

  3. make a portage dir:
    Code:
    mkdir usr/portage

  4. mount your local portage tree (you have to be root from now on):
    Code:
    mount --bind /usr/portage usr/portage

  5. chroot to your stage3:
    Code:
    chroot /home/cintra/stage3 /bin/bash

  6. build a binary package of sys-devel/gcc:
    Code:
    quickpkg sys-devel/gcc

  7. exit chroot:
    Code:
    exit

  8. emerge the binary gcc:
    Code:
    emerge -K sys-devel/gcc

  9. make sure the binary installed gcc is selected:
    Code:
    gcc-config -l
    if it is not, select it with
    Code:
    gcc-config <number of correct gcc profile>

  10. reemerge gcc:
    Code:
    emerge sys-devel/gcc



HTH.
Back to top
View user's profile Send private message
hcintra
n00b
n00b


Joined: 27 Jan 2005
Posts: 51

PostPosted: Tue Mar 20, 2007 12:09 pm    Post subject: Reply with quote

Fantastic. Thank you very much.

I am jumping to it right now.
Back to top
View user's profile Send private message
hcintra
n00b
n00b


Joined: 27 Jan 2005
Posts: 51

PostPosted: Tue Mar 20, 2007 1:00 pm    Post subject: Reply with quote

chrbecke,

it worked like charm, deeply appreciated.

Vielen dank
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