Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] emerge: command not found (uninstalled Python)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Fri Feb 22, 2008 5:19 pm    Post subject: [Solved] emerge: command not found (uninstalled Python) Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54420
Location: 56N 3W

PostPosted: Fri Feb 22, 2008 5:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Urban Cowboy
n00b
n00b


Joined: 09 Oct 2007
Posts: 64

PostPosted: Fri Feb 22, 2008 5:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Fri Feb 22, 2008 7:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54420
Location: 56N 3W

PostPosted: Fri Feb 22, 2008 7:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Fri Feb 22, 2008 8:02 pm    Post subject: Reply with quote

I am now getting a lot of collisions when i want to emerge portage, should i post them?
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54420
Location: 56N 3W

PostPosted: Fri Feb 22, 2008 8:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Fri Feb 22, 2008 8:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54420
Location: 56N 3W

PostPosted: Fri Feb 22, 2008 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Fri Feb 22, 2008 9:28 pm    Post subject: Reply with quote

Thx NeddySeagoon,

you really helped me out of a predicament here.
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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