LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-18-2012, 04:41 PM   #1
EnigmaticFellow
LQ Newbie
 
Registered: Jul 2012
Distribution: Arch Linux
Posts: 26

Rep: Reputation: Disabled
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?
 
Old 10-19-2012, 08:48 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,157

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
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.
 
Old 10-19-2012, 10:40 PM   #3
EnigmaticFellow
LQ Newbie
 
Registered: Jul 2012
Distribution: Arch Linux
Posts: 26

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cannot run 64-bit pre-compiled binaries on CLFS-Pure64 system corbis_demon Linux From Scratch 2 09-19-2012 02:07 AM
Importing 32 bit swig library from python2.4 on 64 bit machine veerals123 Linux - Software 3 05-11-2011 05:26 AM
[SOLVED] Trying to install 'Gmail Backup' but it requires python2.5 - I have python2.8... Robert.Thompson Slackware 6 05-10-2011 08:23 AM
[SOLVED] Installing IcedTea on a 64-bit CLFS system corbis_demon Linux From Scratch 1 11-13-2010 07:08 AM
[SOLVED] CLFS 64 bit multilib and pure 64 bit pacthes wanted Openumerix Linux From Scratch 1 11-16-2009 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration