Installing python 32 bit on 64 bit Kubuntu
Why not just use VirtualBox to virtualize a 32 bit Kubuntu whenever you want to develop in 32 bit Python. That way you have the best of both worlds: your 64 bit system for normal use and a 32 bit system that you can fire up whenever you need it for Python development.
Installing multiple pythons inside one system feels messier than simply virtualizing the development system you really want.
How to build 32bit python 2.6 on 64bit Linux?
You'll need to pass the appropriate
flags to gcc and ld to tell the compiler
to compile and produce 32bit binaries.
Use --build
and --host
.
./configure --help
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
You need to use ./configure --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu
to compile for 32-bit Linux in a 64-bit Linux system.
Note: You still need to add the other ./configure
options.
Installed Python with 32 bit install, appears as 64 bit
This sounds like you might have multiple instances of Python installed on your machine. Verify that you're calling the correct one by calling it explicitly from its full path, and noting if its still saying 64-bit or 32-bit.
Moving forward, using a virtualenv might simplify any confusion of which python installation, and which installed packages, are being used.
Related Topics
Update .Bashrc from Provisioning Shell Script with Vagrant
Git Clone Gnutls Recv Error (-9): a Tls Packet with Unexpected Length Was Received
Building Gcc with Glibc in a Non-Standard Location Without Root
What Is a Shell Command to Find The Longest Common Substring of Two Strings in Unix
How to Specify Which Kernel to Build with Bitbake/Yocto
When Did Hup Stop Getting Sent and What How to Do About It
How to Use 9-Bit Serial Communication in Linux
Setting The Umask of The Jenkins Process
Sshfs, Linux - How to Mount with Read-Only Access
Echo - Syntax Error: Bad Substitution
Bash "&" Without Printing "[1]+ Done "
Permission Denied: '/Var/Lib/Pgadmin/Sessions' in Docker
How to Get Clock_Gettime(2) Clock in Shell
How to Convert Absolute Path to Relative in C Linux
What Special Meaning Does an Equal-Sign Have in Zsh
Apache/Httpd /Var/Www/HTML/ .Cgi Scripts Throw 500 Internal Server Error