LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Problems with using Python2.7 on 64-bit CLFS system (http://www.linuxquestions.org/questions/linux-from-scratch-13/problems-with-using-python2-7-on-64-bit-clfs-system-4175432955/)

EnigmaticFellow 10-18-2012 04: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.

Code:

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.

Code:

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 08: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 10: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 05:10 AM.