View previous topic :: View next topic |
Author |
Message |
mani001 Guru
Joined: 04 Dec 2004 Posts: 485 Location: Oleiros
|
Posted: Tue Oct 14, 2008 8:01 am Post subject: accidentally unemerged python. emerge won't work [solved] |
|
|
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 |
|
|
zyko l33t
Joined: 01 Jun 2008 Posts: 620 Location: Munich, Germany
|
Posted: Tue Oct 14, 2008 8:16 am Post subject: |
|
|
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 |
|
|
mani001 Guru
Joined: 04 Dec 2004 Posts: 485 Location: Oleiros
|
Posted: Tue Oct 14, 2008 8:30 am Post subject: |
|
|
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 ) 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 |
|
|
mani001 Guru
Joined: 04 Dec 2004 Posts: 485 Location: Oleiros
|
Posted: Tue Oct 14, 2008 10:15 am Post subject: |
|
|
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 |
|
|
z3rgl1ng_z Tux's lil' helper
Joined: 06 Jan 2006 Posts: 116 Location: Romania
|
Posted: Tue Oct 14, 2008 10:17 am Post subject: |
|
|
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 |
|
|
mani001 Guru
Joined: 04 Dec 2004 Posts: 485 Location: Oleiros
|
Posted: Wed Oct 15, 2008 10:45 am Post subject: |
|
|
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 |
|
|
|