View previous topic :: View next topic |
Author |
Message |
Sade Guru
Joined: 22 Mar 2005 Posts: 406 Location: Netherlands - Eindhoven
|
Posted: Fri Feb 22, 2008 5:19 pm Post subject: [Solved] emerge: command not found (uninstalled Python) |
|
|
I need some help
I accidentally removed python, that was mistake number one.
because now my emerge was broken.
luckily i found this fix,
manually installed python and (r)emerged python.
Code: | cd /root
wget http://distfiles.gentoo.org/distfiles/Python-2.4.3.tar.bz2
tar jxvf Python-2.4.4.tar.bz2
cd Python-2.4.4
./configure
make
./python /usr/bin/emerge python |
Then i still got a lot of:
Code: | python: error while loading shared libraries: libpython2.4.so.1.0: cannot open shared object file: No such file or directory |
so i thought lets do a "revdeprebuild -p" but that also complained about the python libraries.
so i thought maybe i can manually rebuild some packages first
i started with portage (since i think emerge is part of that, plz correct me when wrong)
the result:
Code: | bash: emerge: command not found |
HELP
P.S. i've got a working install of gentoo on another partition, mayb that's some help _________________ | 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Last edited by Sade on Fri Feb 22, 2008 9:29 pm; edited 3 times in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Fri Feb 22, 2008 5:46 pm Post subject: |
|
|
Sade,
See this thread it was prompted by another file but the recovery process is the same.
If the tarball you need is not on the tinderbox, my last post describes how to recover your system _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Urban Cowboy n00b
Joined: 09 Oct 2007 Posts: 64
|
Posted: Fri Feb 22, 2008 5:47 pm Post subject: |
|
|
It might not be finding /usr/bin/python, so try:
Code: | # cd /usr/bin
# ln -s /usr/local/bin/python |
EDIT: Nevermind, see above _________________ Anything worth doing is worth over-doing. Moderation is for cowards. |
|
Back to top |
|
|
Sade Guru
Joined: 22 Mar 2005 Posts: 406 Location: Netherlands - Eindhoven
|
Posted: Fri Feb 22, 2008 7:38 pm Post subject: |
|
|
thx for the reply,
which tarball am i looking for?
i seem to have misplaced my emerge, is this in the portage tarball?
[edit]
i've downloaded the portage-2.1.3.19 tarball and extracted it in my root this is the result:
Code: | en / # tar -xjf portage-2.1.3.19.tbz2
bzip2: (stdin): trailing garbage after EOF ignored
en / # emerge -va portage
/usr/bin/python: error while loading shared libraries: libpython2.4.so.1.0: cannot open shared object file: No such file or directory |
[edit2]
I downloaded the python2.4.4-r6 package and did the same with that, everything now seems to work
Do i need to do anything more? _________________ | 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Last edited by Sade on Fri Feb 22, 2008 7:57 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Fri Feb 22, 2008 7:57 pm Post subject: |
|
|
Sade,
You want python 2.4 _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Sade Guru
Joined: 22 Mar 2005 Posts: 406 Location: Netherlands - Eindhoven
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Fri Feb 22, 2008 8:24 pm Post subject: |
|
|
Sade,
If they are files colliding with themselves, thats ok. Look over the list and see what the collisions are.
Post a your emerge command and a few of the collisions. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Sade Guru
Joined: 22 Mar 2005 Posts: 406 Location: Netherlands - Eindhoven
|
Posted: Fri Feb 22, 2008 8:59 pm Post subject: |
|
|
I've disabled collision-protect in my make.conf, it is now merging
a snip out of the collisions: (emerge portage)
Code: | * /usr/share/man/man5/ebuild.5.bz2
* /usr/sbin/regenworld
* /usr/sbin/emerge-webrsync
* /usr/sbin/env-update
* /usr/sbin/quickpkg
* /usr/sbin/emaint
* /usr/sbin/dispatch-conf
* /usr/sbin/update-etc
* /usr/sbin/etc-update
* /usr/sbin/archive-conf
* /usr/sbin/update-env
* /usr/sbin/fixpackages
* /usr/bin/emerge
* /usr/bin/ebuild
* /usr/bin/tbz2tool
* /usr/bin/repoman
* /usr/bin/portageq
* /usr/bin/xpak
* /usr/lib/portage/bin/donewins |
_________________ | 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file | |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Fri Feb 22, 2008 9:22 pm Post subject: |
|
|
Sade,
It looks like its installing things over the top of things already there, which seems fair if you removed a aprt of something and are now having to rebuild it all. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Sade Guru
Joined: 22 Mar 2005 Posts: 406 Location: Netherlands - Eindhoven
|
|
Back to top |
|
|
|