Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install 32 bit Python on x86_64_ Linux.

Following instructions from

I downloaded the tarball from here:

Untarred in my home directory, which is a RHEL 5.5 OS

Under /home/local/NT/jayanthv/Python-2.7.3,

I run

OPT=-m32 LDFLAGS=-m32 ./configure --prefix=/opt/pym32

and then I run gmake.

And the build fails as expected after certain modules.

Python build finished, but the necessary bits to build these modules were not found: _tkinter bsddb185 sunaudiodev To find the necessary bits, look in in detect_modules() for the module's name.

Failed to build these modules: _ctypes _sqlite3

running build_scripts

Nothing seems to be there under /opt/pym32.

But, under /home/local/NT/jayanthv/Python-2.7.3, there is a 32 bit python executable I can use.

What is the use of prefix here? Am I doing something wrong?

share|improve this question
up vote 1 down vote accepted

1) Did configure succeed? Do an echo $? after verify a 0 for success before bothering with a gmake.

2) Did you do a gmake install? Nothing is installed until you do a gmake install. You probably need root perms to install under /opt.

3) you can combine 1 & 2 with OPT=-m32 LDFLAGS=-m32 ./configure --prefix=/opt/pym32 && gmake -j4 && sudo gmake install

The arg --prefix=... gives the root directory for the install location, instead of the default (usually /usr). For many packages, it also sets some locations in source code... e.g. you can't just copy gcc from /opt/gcc to say, /usr, because a lot of locations are now coded to look under /opt/gcc, and that won't change with a file move.

Me Curious: why are you building your own instead of using the system python?

share|improve this answer
The system python is a 64 bit executable, I need a 32 bit installable. I am trying to install omniORB, but I am running into problems with omniidl, and hence trying to see if the 32 bit executable does the trick. – roymustang86 Aug 28 '12 at 19:56
@roymustang86 - makes sense, keep calm and carry on. – Rich Homolka Aug 28 '12 at 20:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.