LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   Unmerged python in gentoo system! (https://www.linuxquestions.org/questions/gentoo-87/unmerged-python-in-gentoo-system-224430/)

ascentsoft 08-30-2004 03:28 PM

Unmerged python in gentoo system!
 
Hello,

I have just emerge unmerged python
That was silly of me wasn't it. Yes, but once you have had a wee chuckle perhaps you can tell me how to get out of this mess.

The problem is that emerge uses python. Do I have to start from scratch or can I do some kind of manual install?

Thanks

Chris

Crashed_Again 08-30-2004 05:24 PM

If I had to take I guess, I'd say the way to get out of this is:

1. Boot the livecd
2. Chroot in & Mount Partitions
3. emerge python

ponds 08-30-2004 06:24 PM

You won't have python installed in your chroot, what you need to do is mount partitions, download a portage snapshot, extract the portage snapshot into your /mnt/gentoo or wherever you mounted what's normally /, then reboot and of course emerge sync.

Sage314 03-07-2008 01:43 PM

Similar issue
 
I'm having a similar problem on my system, only with gcc instead of python. I unmerged gcc and am now having problems re-emerging it even with the LiveCD. Here is the thread for reference:

Thread

I boot into the live cd, mount my partitions, chroot, attempt to emerge gcc, and it tries to find gcc to compile itself in the chrooted environment. The thread above suggests to copy the gcc exec (I don't know where to find it) from the cd and then re-emerge on the target partition. So, I'm lost. Help?

Retrievil_Knievil 10-23-2008 02:00 PM

Snapshot or stage?
 
Hi,

I did the following, after a momentary lapse of reason;

1. Download the most recent stage1-file from a mirror.
2. Extract the missing files (I installed the files from /usr/bin that started with "py" and the /python2.x folder from /usr/lib, think that was it)
3. emerge python
4./usr/sbin/python-updater

Had to remove the files I installed manually, but seems to be working. No reboot needed.

Pestilent 11-02-2008 04:12 PM

Quote:

Originally Posted by Retrievil_Knievil (Post 3319969)
Hi,

I did the following, after a momentary lapse of reason;

1. Download the most recent stage1-file from a mirror.
2. Extract the missing files (I installed the files from /usr/bin that started with "py" and the /python2.x folder from /usr/lib, think that was it)
3. emerge python
4./usr/sbin/python-updater

Had to remove the files I installed manually, but seems to be working. No reboot needed.

This method worked for me with one addition. For AMD64 build, you also need to copy the libpython.so* files from the stage files to /usr/lib64 . Once in place I emerged python and all was well.


All times are GMT -5. The time now is 05:04 PM.