Installing mod_python on mac os 10.4.7

Graham Dumpleton Graham.Dumpleton at gmail.com
Sat Jul 14 22:34:42 EDT 2007


On Jul 15, 10:06 am, Graham Dumpleton <Graham.Dumple... at gmail.com>
wrote:
> On Jul 15, 2:47 am, 7stud <bbxx789_0... at yahoo.com> wrote:
>
>
>
> > Themod_pythonmanual says this under section 2.1 Prerequisites:
>
> > ------
> > In order to compilemod_pythonyou will need to have the include files
> > for both Apache and Python, as well as the Python library installed on
> > your system. If you installed Python and Apache from source, then you
> > already have everything needed. However, if you are using prepackaged
> > software (e.g. Red Hat Linux RPM, Debian, or Solaris packages from
> > sunsite, etc) then chances are, you have just the binaries and not the
> > sources on your system. Often, the Apache and Python include files and
> > libraries necessary to compilemod_pythonare part of separate
> > ``development'' package. If you are not sure whether you have all the
> > necessary files, either compile and install Python and Apache from
> > source, or refer to the documentation for your system on how to get
> > the development packages.
> > -----
>
> > I installed Apache from source using these instructions:
>
> >http://switch.richard5.net/isp-in-a-box-v2/installing-apache-on-mac-o...
>
> > but I used a package to install python 2.4.  The package was from
> > here:
>
> >http://www.pythonmac.org/packages/
>
> > and it's a "Universal binary version of Python that runs natively on
> > PPC and Intel systems."
>
> > But my mac came with Python 2.3.5 pre-installed, so I wonder if I
> > already have the necessary "include files for both Apache and Python,
> > as well as the Python library" already installed.
>
> Have you actually tried to install mod_python? That would be the
> quickest way of finding out.
>
> Because you are using an alternate Apache than the OS supplied one,
> you will need to use the --with-apxs option to configure when building
> Python.

Whoops, --with-apxs option is to configure for mod_python, not Python.

> Unless you really need Python 2.4, it is easier to use the OS
> supplied version of Python. If you must use an alternate version, use
> the --with-python option to configure for mod_python to tell it which
> version. Depending on where that Python version is installed, you may
> also have to fiddle the Apache 'envvars' file as well to get it to
> work.
>
> Graham





More information about the Python-list mailing list