View previous topic :: View next topic |
Author |
Message |
hcintra n00b
Joined: 27 Jan 2005 Posts: 51
|
Posted: Tue Mar 20, 2007 11:06 am Post subject: Stupid me deleted gcc libs... new install? [solved] |
|
|
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 |
|
|
chrbecke Guru
Joined: 12 Jul 2004 Posts: 598 Location: Berlin - Germany
|
Posted: Tue Mar 20, 2007 11:47 am Post subject: |
|
|
You can recover this way:
- On a filesystem with at least 500 MB free space (e.g. /home/hcintra), do
Code: | mkdir /home/hcintra/stage3 && cd /home/hcintra/stage3 |
get a stage3 tarball for your arch and unpack it: Code: | tar -xjf /path/to/stage3.tar.bz2 |
make a portage dir:
mount your local portage tree (you have to be root from now on): Code: | mount --bind /usr/portage usr/portage |
chroot to your stage3: Code: | chroot /home/cintra/stage3 /bin/bash |
build a binary package of sys-devel/gcc: Code: | quickpkg sys-devel/gcc |
exit chroot:
emerge the binary gcc: Code: | emerge -K sys-devel/gcc |
make sure the binary installed gcc is selected: if it is not, select it with Code: | gcc-config <number of correct gcc profile> |
reemerge gcc: Code: | emerge sys-devel/gcc |
HTH. |
|
Back to top |
|
|
hcintra n00b
Joined: 27 Jan 2005 Posts: 51
|
Posted: Tue Mar 20, 2007 12:09 pm Post subject: |
|
|
Fantastic. Thank you very much.
I am jumping to it right now. |
|
Back to top |
|
|
hcintra n00b
Joined: 27 Jan 2005 Posts: 51
|
Posted: Tue Mar 20, 2007 1:00 pm Post subject: |
|
|
chrbecke,
it worked like charm, deeply appreciated.
Vielen dank |
|
Back to top |
|
|
|