Compiling and running 32-bit Python on 64-bit server?

Aahz aahz at pythoncraft.com
Fri Feb 26 01:10:57 CET 2010


In article <d5f0a586-6548-4f25-92ab-e723b6313b2b at q29g2000yqn.googlegroups.com>,
Mikko Ohtamaa  <mikko at redinnovation.com> wrote:
>
>How one could create 32-bit Python run-time enviroment, preferable
>virtualenv, on 64-bit Linux (VPS), reducing memory usage? This
>environment could actually beat 64-bit in performance, due to better
>memory cache use.
>
>I assume this involves having lib32 libs and compiling Python with
>some magical switches.

The simplest approach would probably be to do the compilation on a 32-bit
system and just install it on 64-bit.  There are some magic flags, yes;
you'll need to Google using e.g. "linux force 32-bit compile".
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Many customs in this life persist because they ease friction and promote
productivity as a result of universal agreement, and whether they are
precisely the optimal choices is much less important." --Henry Spencer



More information about the Python-list mailing list