Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 12aef6395c3678c929b08cd723fc1673 > files > 66

mod_python-2.7.6-1mdk.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>2.2.1 Running ./configure</title>
<META NAME="description" CONTENT="2.2.1 Running ./configure">
<META NAME="keywords" CONTENT="modpython">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="modpython.css">
<LINK REL="next" href="inst-make.html">
<LINK REL="previous" href="inst-compiling.html">
<LINK REL="up" href="inst-compiling.html">
<LINK REL="next" href="inst-make.html">
</head>
<body>
<DIV CLASS="navigation">
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="inst-compiling.html"><img src="icons/previous.gif"
  border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A href="inst-compiling.html"><img src="icons/up.gif"
  border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A href="inst-make.html"><img src="icons/next.gif"
  border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Mod_python Manual</td>
<td><A href="contents.html"><img src="icons/contents.gif"
  border="0" height="32"
  alt="Contents" width="32"></A></td>
<td><img src="icons/blank.gif"
  border="0" height="32"
  alt="" width="32"></td>
<td><A href="genindex.html"><img src="icons/index.gif"
  border="0" height="32"
  alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="inst-compiling.html">2.2 Compiling</A>
<b class="navlabel">Up:</b> <a class="sectref" href="inst-compiling.html">2.2 Compiling</A>
<b class="navlabel">Next:</b> <a class="sectref" href="inst-make.html">2.2.2 Running make</A>
<br><hr>
</DIV>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION004210000000000000000">&nbsp;</A>
<a name='l2h-2'>&nbsp;</a>
<BR>
2.2.1 Running ./configure
</H2>

<P>
The <b class="program">./configure</b> script will analyze your environment and create custom
Makefiles particular to your system. Aside from all the standard
autoconf stuff, <b class="program">./configure</b> does the following:

<P>

<UL>
<LI><a name='l2h-3'>&nbsp;</a>Finds out whether a program called <b class="program">apxs</b> is available. This
program is part of the standard Apache distribution, and is necessary
for DSO compilation. If apxs cannot be found in your <a class="envvar" name='l2h-4'>PATH</a> or in
<span class="file">/usr/local/apache/bin</span>, DSO compilation will not be available.

<P>
You can manually specify the location of apxs by using the
<b class="programopt">--with-apxs</b> option, e.g.:

<P>
<dl><dd><pre class="verbatim">
$ ./configure --with-apxs=/usr/local/apache/bin/apxs
</pre></dl>

<P>
</LI>
<LI><a name='l2h-5'>&nbsp;</a>Checks for <b class="programopt">--with-apache</b> option. Use this option to
tell <b class="program">./configure</b> where the Apache sources are on your
system. The Apache sources are necessary for static compilation. If
you do not specify this option, static compilation will not be
available. Here is an example:

<P>
<dl><dd><pre class="verbatim">
$ ./configure --with-apache=../src/apache_1.3.12 --with-apxs=/usr/local/apache/bin/apxs
</pre></dl>

<P>
</LI>
<LI><a name='l2h-6'>&nbsp;</a>Checks your Python version and attempts to figure out where
<b class="program">libpython</b> is by looking at various parameters compiled into
your Python binary. By default, it will use the <b class="program">python</b>
program found in your <a class="envvar" name='l2h-7'>PATH</a>.

<P>
<a name='l2h-8'>&nbsp;</a>If the Python installation on your system is not suitable for
mod_python (which can be the case if Python is compiled with thread
support), you can specify an alternative location with the
<b class="programopt">--with-python</b> options. This option needs to point to
the root directory of the Python source, e.g.:

<P>
<dl><dd><pre class="verbatim">
$ ./configure --with-python=/usr/local/src/Python-2.0
</pre></dl>                      

<P>
Note that the directory needs to contain already configured and
compiled Python. In other words, you must at least run <b class="program">./configure</b> and
<b class="program">make</b>.

<P>
Also note that while it is possible to point the <b class="programopt">--with-python</b>
to a version of Python different from the one installed in your standard
<a class="envvar" name='l2h-9'>PATH</a>, you will need to have that version of Python installed as well.
This is because the path to the Python library, which is retrieved from the
<span class="file">python</span> binary is going to point to the
place where Python would be ultimately installed, not the source
deirectory. Generally, it's best to try to keep the version of Python that
you use for mod_python the same as the one you use everywhere on the system.

<P>
</LI>
</UL>

<P>

<DIV CLASS="navigation">
<p><hr>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="inst-compiling.html"><img src="icons/previous.gif"
  border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A href="inst-compiling.html"><img src="icons/up.gif"
  border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A href="inst-make.html"><img src="icons/next.gif"
  border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Mod_python Manual</td>
<td><A href="contents.html"><img src="icons/contents.gif"
  border="0" height="32"
  alt="Contents" width="32"></A></td>
<td><img src="icons/blank.gif"
  border="0" height="32"
  alt="" width="32"></td>
<td><A href="genindex.html"><img src="icons/index.gif"
  border="0" height="32"
  alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="inst-compiling.html">2.2 Compiling</A>
<b class="navlabel">Up:</b> <a class="sectref" href="inst-compiling.html">2.2 Compiling</A>
<b class="navlabel">Next:</b> <a class="sectref" href="inst-make.html">2.2.2 Running make</A>
<hr>
<span class="release-info">Release 2.7.6, documentation updated on August 04, 2001.</span>
</DIV>
<!--End of Navigation Panel-->

</BODY>
</HTML>