View previous topic :: View next topic |
Author |
Message |
z_sfeng Apprentice
Joined: 21 Apr 2004 Posts: 154 Location: Finland
|
Posted: Thu Sep 10, 2009 9:52 pm Post subject: [SOLVED] system broken after "emerge --depclean" |
|
|
after an emerge --depclean, my laptop is broken:
It's not completely broken it can boot, and login normally, and most command like bash, vi, etc are ok, excpet:
1. any portage-related command is broken, shows something like "syntax error"
2. X windows and some other command broken with missing libstdc++.so.6 error. however, the libstdc++.so.6 is right there.
3. "gcc-config -l" says $CHOST not defined.
I checked the emerge.log. something might related is python-2.5 which is removed. python-2.6 and python-3.1 are still there, but "python -V" shows "3.1", it should be "2.6".
So I think my problem might be, after uninstall python-2.5, the portage automatically updated to 3.1, which causes my portage broken.
Any way, how I can I fix my system? Actually most commands still work, except portage.
Last edited by z_sfeng on Fri Sep 11, 2009 5:34 am; edited 1 time in total |
|
Back to top |
|
|
purak Apprentice
Joined: 21 Jun 2008 Posts: 160 Location: /dev/urandom
|
Posted: Thu Sep 10, 2009 10:03 pm Post subject: |
|
|
Code: | eselect python list |
and
Code: | eselect python set ? |
You should set number of python2.6
Quote: | 2. X windows and some other command broken with missing libstdc++.so.6 error. however, the libstdc++.so.6 is right there. |
Could you run revdep-rebuild? I hope it works... |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Sep 10, 2009 10:09 pm Post subject: |
|
|
You can fix emerge like this - if that is really the problem. If python is broken try this.
Run Code: | eselect python list | and set python-2.6 then run python-updater
Then Code: | emerge --sync && emerge -e world |
And we always run emerge --depclean --pretend --verbose first, right? |
|
Back to top |
|
|
z_sfeng Apprentice
Joined: 21 Apr 2004 Posts: 154 Location: Finland
|
Posted: Fri Sep 11, 2009 4:18 am Post subject: |
|
|
The problem is I can't run any portage related program: emerge, equery, eix, eselect, python-update...
Yes, I run "emerge -av --depclean". and didn't see any important package. The only thing might be related is python-2.5, which is not used I think. |
|
Back to top |
|
|
z_sfeng Apprentice
Joined: 21 Apr 2004 Posts: 154 Location: Finland
|
Posted: Fri Sep 11, 2009 5:31 am Post subject: |
|
|
Sorry, I think eselect is not in my tried list.
The eselect actually works, because it is a pure bash script.
The problem is solved by following steps:
1. select python-2.6 using eselect;
2. revdep-rebuild and emerge still failed. Emerge any ebuild failed at configuration:
Code: |
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: in `/var/tmp/portage/sys-devel/gcc-4.4.1/work/build':
configure: error: C compiler cannot create executables
|
3. run gcc-config show error like "the active gcc profile is invalid". run
fixed gccc.
now seems everything is OK Thank you mike and purak. |
|
Back to top |
|
|
|