Okay, so I had a conflict with phyton and python-updater on my gentoo box the other day, and being tired and not thinking, i did a emerge -C pyton, which removes the program.
Shortly afterwards remembering the emerge program (gentoo’s portage application) is dependant on python. Doing a series of “whoops”, “oh shits”, and “damns”, I did a quick google, and found this link, and used it with updated versions/commands. http://forums.gentoo.org/viewtopic.php?t=5746
Basically what I did:
cd /tmp/
tar xjf /usr/portage/distfiles/Python-2.4.4.tar.bz2
cd Python-2.4.4/
./configure –with-fpectl –infodir=/usr/share/info/ –mandir=/usr/share/man
make
make install prefix=/usr
emerge python
cd ; rm -rf /tmp/Python-2.4.4
Which got me back up and operational. Kudos to the original poster to fix this!










Wow – thanks man. You saved me hours and lots of palpitations.
You titled your post exactly right for the search engine too.
Gentoo should just have a command:
emerge –fix-stupid-python-removal
I’ve just did the similar mistake (too fast ‘emerge –prune –nodep’), but thanks to you it wasn’t that hard to fix it. It should be somehow forbidden for emerge to remove python that easy…