-   Linux From Scratch (
-   -   Problems with using Python2.7 on 64-bit CLFS system (

EnigmaticFellow 10-18-2012 05:41 PM

Problems with using Python2.7 on 64-bit CLFS system
When I installed Python2.7 following the instructions from CBLFS for a 64-bit multilib system. It was able to compile and install; however, running python nets me this.


root:/sources/Python-2.7.3# python
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site

So I defined PYTHONHOME as '/usr/bin' and ran python again to get this message.


root:/sources/Python-2.7.3# export PYTHONHOME="/usr/bin"
root:/sources/Python-2.7.3# python
ImportError: No module named site

What's going on and how do I solve this so I can start compiling xcb-proto?

Keith Hedger 10-19-2012 09:48 AM

Looks like python didn't install properly have you tried running make install twice as the book says?
Did you run make test, have you done what the notes just under "Non-Multilib" suggest?
Personally I hate python and python apps it's always a problem.

EnigmaticFellow 10-19-2012 11:40 PM

I eventually got Python to work after I compiled it again over on the CLFS system instead of through chroot. Yeah, I should probably do that for the rest of the programs I want to install as well now.

All times are GMT -5. The time now is 03:39 AM.