Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge doesn't work any more after portage update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
TheGuardian
n00b
n00b


Joined: 10 Jul 2009
Posts: 6

PostPosted: Fri Jul 17, 2009 11:31 pm    Post subject: Emerge doesn't work any more after portage update Reply with quote

Hi *,

I have just installed Gentoo on my PS3 and ran into the following problem.

While executing 'emerge portage', it gave me the following error:

Code:
>>> Messages generated by process 4634 on 2009-07-17 23:11:31 for package dev-lang/python-2.5.4-r3:

WARN: postinst
//usr/lib/python2.5 doesn't exist!


If I execute emerge now, i get the following error:

Code:
localhost ~ # emerge python
/usr/bin/python: error while loading shared libraries: libpython2.5.so.1.0: cannot open shared object file: No such file or directory

localhost ~ # find / -name "libpython2.5.so.1.0"
/usr/libpython2.5.so.1.0

localhost ~ # env | grep -i Python
PYTHONPATH=/usr/lib64/portage/pym


Even if i copy the libpython file to /usr/lib64/portage/pym, I get the same error.

Does anybody know how to fix this? The error is reproducable and occurs everytime i try to update portage.

Thanks in advance and kind regards

Stephan

/Edit: Setting the PYTHONHOME and compiling the current python version manually from source didn't help either.

/Edit #2: Setting the LD_LIBRARY_PATH worked, but after that different python modules have been missing.
After a few hours work I have decided to rest on this topic. I'll try out arch linux and see if that works out better for me.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Jul 18, 2009 3:49 pm    Post subject: Reply with quote

Somehow, you broke your python installation. Emerge is written in Python, so the result is a non-working system. Perhaps if you could explain in greater detail exactly what you did to get to this point, we could help you out.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
TheGuardian
n00b
n00b


Joined: 10 Jul 2009
Posts: 6

PostPosted: Sat Jul 18, 2009 4:53 pm    Post subject: Reply with quote

Hi JoseJX,

thanks for your post!

I pretty much followed this instruction to install gentoo on my playstation 3.
It works without any problems until this point:

Code:

(chroot) / # emerge --sync


The syncing works just fine and both python and emerge are still usable after that.

After the syncing however, I receive a message, that portage should be emerged to the current version.
I tried both, to emerge and not to emerge portage.

If I don't emerge portage, I'm not able to emerge any program, because they are all masked by EAPI.
If I emerge portage I end up with the broken python, which misses many of its modules.

The peculiar thing is, that even built-in python modules like math.py are missing at that point.

If I can provide any more information, please tell me and I'll take a look.

Kind regards

Stephan
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Jul 19, 2009 6:18 pm    Post subject: Reply with quote

Which stage did you start with? I suspect it was a really old one, which isn't really recommended unless you know what you're doing! If you boot the way you're doing now and install a current stage 3, I suspect your problems will go away. It's a bit more work to get it running as the PS3 specific stage would be, but it'll be easier in the long run!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
TheGuardian
n00b
n00b


Joined: 10 Jul 2009
Posts: 6

PostPosted: Wed Jul 22, 2009 10:57 pm    Post subject: Reply with quote

Hi JoseJX,

I finally managed to try the stage 3 installation. Up to now everything is working fantastic!
The system bootet with my own kernel and now I can start to install X, vlc and the other apps I need.
Thank you very much for your hint.

Kind regards

Stephan
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jul 23, 2009 2:09 am    Post subject: Reply with quote

No problem, glad I could help! Enjoy your new Gentoo system!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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