[mod_python] mod_python install fails

Graham Dumpleton graham.dumpleton at gmail.com
Wed Apr 4 07:57:39 EDT 2007


On 04/04/07, Brian McCann <Brian.McCann at viziant.net> wrote:
>
>
>
> Hi Graham,
>
> I made the change you sugested in configure but get the following errors in
> bold  below
> any ideas?
> Thanks,
> Brian
> [root at sirius1 mod_python-3.3.1]# ./configure
> --with-python=/usr/bin/python2.3
> --with-apxs=/usr/sbin/apxs2 --with-flex=/usr/bin/flex
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for ar... ar
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether make sets $(MAKE)... yes
> checking for main in -lm... yes
> checking for an ANSI C-conforming const... yes
> checking your blood pressure... a bit high, but we can proceed
> configure: checking whether apxs is available...
> checking for --with-apxs... /usr/sbin/apxs2 executable, good
> checking Apache version... apxs:Error: /usr/sbin/httpd2 not found or not
> executable.
> apxs:Error: /usr/sbin/httpd2 not found or not executable.
> ./configure: line 2713: /: is a directory
> configure: error: This version of mod_python only works with Apache 2. The
> one you have seems to be .
> [root at sirius1 mod_python-3.3.1]#

What is the actual path to your 'httpd'? Is it '/usr/bin/httpd'?

If when you run:

  apxs2 -q TARGET

it generates:

  httpd2

then suggests your Apache installation is broken in some way.

Can only suggest you modify the mod_python configure program and look for:

  HTTPD="`${APXS} -q SBINDIR`/`${APXS} -q TARGET`"

change it to:

  HTTPD="/usr/bin/httpd"

or whatever the actual path to the web server executable is.

Rerun configure. This may or may no get you further.

Graham

>  ________________________________
>  From: Graham Dumpleton [mailto:graham.dumpleton at gmail.com]
> Sent: Wed 4/4/2007 12:41 AM
> To: Brian McCann
> Cc: mod_python at modpython.org
> Subject: Re: [mod_python] mod_python install fails
>
>
>
>
> On 04/04/07, Brian McCann <Brian.McCann at viziant.net> wrote:
> > I'm trying to install mod_python on a RedHat4 enterprise server which has
> > CollabNets's
> > SVN runing with apache 2.2.3 installed I'm getting the following errors.
> > any help would be greatly appreciated
> >
> > I ran config,make,make install, but get the errors below when I try to
> > restart apache, here is the full out put from config, as you can see there
> a
> > a few problems
> > 1. I point to apxs2 but the config script ignores and uses apxs
>
> But you use the wrong option to configure. There is no --with-apxs2
> option, use --with-apxs instead:
>
> ./configure  --with-python=/usr/bin/python2.3
> --with-apxs=/usr/sbin/apxs2 --with-flex=/usr/bin/flex
>
> > 2. config uses apache 2.0.52 but should be using the one installed with
> > CollabNetSVN 2.2.3
> > I also put the apache restart error at the bottom of this comment
> > Thanks,
> > Brian
> >
> *******************************************************************************
> > [root at sirius1 mod_python-3.3.1]# ./configure
> > --with-python=/usr/bin/python2.3 --with-apxs2=/usr/sbi
> > n/apxs2 --with-flex=/usr/bin/flex
> > checking for gcc... gcc
> > checking for C compiler default output file name... a.out
> > checking whether the C compiler works... yes
> > checking whether we are cross compiling... no
> > checking for suffix of executables...
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking for gcc option to accept ANSI C... none needed
> > checking for ar... ar
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking whether make sets $(MAKE)... yes
> > checking for main in -lm... yes
> > checking for an ANSI C-conforming const... yes
> > checking your blood pressure... a bit high, but we can proceed
> > configure: checking whether apxs is available...
> > checking for --with-apxs... no
> > checking for apxs in /usr/local/apache/sbin... no
> > checking for apxs in your PATH... checking for apxs... /usr/sbin/apxs
> > found /usr/sbin/apxs, we'll use this. Use --with-apxs to specify another.
> > checking Apache version... 2.0.52
> > checking for Apache libexec directory... /usr/lib/httpd/modules
> > checking for Apache include directory... -I/usr/include/httpd
> > checking for --with-python... /usr/bin/python2.3
> > checking Python version... 2.3
> > checking Python install prefix... /usr
> > checking checking where python libraries are installed...
> /usr/lib/python2.3
> > checking for Py_NewInterpreter in -lpython2.3... yes
> > checking what libraries Python was linked with... -lpython2.3 -lpthread
> -ldl
> > -lutil -lm
> > checking linker flags used to link Python...
> > checking where Python include files are... -I/usr/include/python2.3
> > checking for --with-python-src... no
> > checking for --with-mutex-dir... no
> > Using MUTEX_DIR /tmp
> > checking for --with-max-locks... no
> > Using 8 MAX_LOCKS.
> > checking for --with-flex... /usr/bin/flex
> > found /usr/bin/flex, we'll use this. Use --with-flex to specify another.
> > checking flex version... configure: WARNING: Flex version 2.5.4 found.
> > Version 2.5.31 or greater is required. You can generally ignore this
> > warning unless you need to regenerate psp_parser.c from psp_parse.l.
> > If you do need regenerate psp_parser.c, use --with-flex to specify the
> > location of the correct flex version. See the README for more information.
> > configure: creating ./config.status
> > config.status: creating Makefile
> > config.status: creating src/Makefile
> > config.status: creating Doc/Makefile
> > config.status: creating src/include/mod_python.h
> > config.status: creating test/Makefile
> > config.status: creating test/testconf.py
> > config.status: creating dist/setup.py
> > config.status: creating dist/Makefile
> > [root at sirius1 mod_python-3.3.1]#
> >
> *****************************************************************
> > Apache restart error
> > [root at sirius1 bin]# apachectl restart
> > httpd: Syntax error on line 55 of
> > /etc/opt/CollabNet_Subversion/conf/httpd.conf: API module
> > structure `python_module' in file /usr/lib/httpd/modules/m
> > od_python.so is garbled - perhaps this is not an Apache module DSO?
> >
> > _______________________________________________
> > Mod_python mailing list
> > Mod_python at modpython.org
> > http://mailman.modpython.org/mailman/listinfo/mod_python
> >
> >
>


More information about the Mod_python mailing list