Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
accidentally unemerged python. emerge won't work [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 485
Location: Oleiros

PostPosted: Tue Oct 14, 2008 8:01 am    Post subject: accidentally unemerged python. emerge won't work [solved] Reply with quote

The thing is I can only access the machine remotely (I'm far far away from home). I tried following this
http://www.jonm.co.uk/Linux.html
("Rocovering Gentoo from a broken python" section)
but it didn't work out because the programs needed by emerge aren't able to find python...
Any other idea/suggestion? As I said the main problem is that I don't have physical access to the computer.
Regards.


Last edited by mani001 on Wed Oct 15, 2008 10:46 am; edited 1 time in total
Back to top
View user's profile Send private message
zyko
l33t
l33t


Joined: 01 Jun 2008
Posts: 620
Location: Munich, Germany

PostPosted: Tue Oct 14, 2008 8:16 am    Post subject: Reply with quote

You can try to grab a binary form of python from http://tinderbox.dev.gentoo.org (and unpack it in your root directory).
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 485
Location: Oleiros

PostPosted: Tue Oct 14, 2008 8:30 am    Post subject: Reply with quote

Thanks for your fast answer :)
I have a binary of python that I compiled without problems in /root/Python-2.4.4 and after creating a symbolic link in /usr/bin
Code:

python -> /root/Python-2.4.4/python

I can use emerge...but when I try emergin some packet doing this (like python :D ) I get a bunch of errors
Code:

ACCESS DENIED  unlink:    /root/Python-2.4.4/Lib/encodings/ascii.pyc
ACCESS DENIED  open_wr:   /root/Python-2.4.4/Lib/encodings/ascii.pyc
ACCESS DENIED  unlink:    /root/Python-2.4.4/Lib/encodings/ascii.pyc
ACCESS DENIED  open_wr:   /root/Python-2.4.4/Lib/encodings/ascii.pyc

so, I'm assuming that is not that easy to use a python binary that was not generated via emerge :(
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 485
Location: Oleiros

PostPosted: Tue Oct 14, 2008 10:15 am    Post subject: Reply with quote

mmmmm....It seems it's working now (the approach consisting in using a binary version of python and a symbolic link). It seems it wasn't working before because something was wrong due to my messing around with other approaches.
I'm now doing "emerge -auD world"
If everything is fine in the end, I'll post later that this solution works...just in case that someone happens to be in my situation in the future (God forbid :) )
Regards.
Back to top
View user's profile Send private message
z3rgl1ng_z
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2006
Posts: 116
Location: Romania

PostPosted: Tue Oct 14, 2008 10:17 am    Post subject: Reply with quote

If you did not get the python binary for gentoo and you got it from python.org and compiled it you get a lot of errors.
I had this problem and i fixed it in a hapy ending. You should do what zyko posted.
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 485
Location: Oleiros

PostPosted: Wed Oct 15, 2008 10:45 am    Post subject: Reply with quote

It worked :) The emerge -auD world after that went just fine.
I got the sources for Python from http://distfiles.gentoo.org/distfiles/ and it compiled without a glitch (I just made ./configure and make).
Regards.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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