Take the 2-minute tour ×

I want to build Python 2.7.1 additionally to the one the redhat server already has pre-installed.

What options do I need to modify/use so that Python can be built under i.e. /opt/Python27

I would appreciate any help!

share|improve this question
See the answer and discussion here: stackoverflow.com/questions/4278874/… –  Adam Vandenberg Nov 30 '10 at 15:56

2 Answers 2

up vote 1 down vote accepted

Configure with:

./configure --prefix=/opt/Python27

In general, you can just do ./configure --help to get a list of all the options you're allowed to set for that configure script.

share|improve this answer

You also want to pass --enable-shared to configure since it is an additional installation of Python.

share|improve this answer

Your Answer


