[mod_python] Trouble compiling mod_python on gentoo

Webb Sprague webb.sprague at gmail.com
Sat Jan 14 18:06:32 EST 2006


Someone filed a bug report:

http://bugs.gentoo.org/show_bug.cgi?id=118948

Thanks to Graham and all.
W

On 1/14/06, Graham Dumpleton <grahamd at dscpl.com.au> wrote:
> Only suggestion I can give you to debug it is to run configure as:
>
>    sh -x ./configure --prefix=/usr/local/mod_python-3.1.4
> --with-apxs=/usr/sbin/apxs2 > my.log 2>&1
>
> The -x option will cause what what the shell is doing at each point
> to be displayed. Make sure you log the output to a file as there will
> be a lot. This may or may not tell you what is happening.
>
> The quoted configure script snippet you give is the same as what works
> on other platforms, so must be something strange to do with your user
> environment, or what shell is linked as '/bin/sh'. You might even try:
>
>    bash -x ./configure --prefix=/usr/local/mod_python-3.1.4
> --with-apxs=/usr/sbin/apxs2
>
> to see if it makes a difference.
>
> BTW, if you are using C Shell and not a Bourne Shell, you will need to
> change how output send to log.
>
> Graham
>
> On 15/01/2006, at 6:17 AM, Webb Sprague wrote:
>
> > Hi all
> >
> > I am unable to compile mod_python on a gentoo machine (all updated,
> > ~x86, etc), both using emerge and by hand, please help if you can...
> > (Also, please email me directly as well as the list, if possible).
> >
> > Here is my configure command:
> >
> > ./configure --prefix=/usr/local/mod_python-3.1.4
> > --with-apxs=/usr/sbin/apxs2
> >
> > Here is the error:
> >
> > <snip>
> > checking where Python include files are... -I/usr/include/python2.4
> > ./configure: line 2951: syntax error near unexpected token `('
> > ./configure: line 2951: `as_me=`(basename "$0") 2>/dev/null ||'
> >
> > Here are my specs:
> >
> > mod_python version: 3.1.4, but same error on 3.2.5b and 3.1.3
> > bash version: 3.1.5
> > apache2 -V:
> > Server version: Apache/2.0.55
> > Server built:   Jan 12 2006 03:53:14
> > Server's Module Magic Number: 20020903:11
> > Architecture:   32-bit
> > Server compiled with....
> >  -D APACHE_MPM_DIR="server/mpm/prefork"
> >  -D APR_HAS_SENDFILE
> >  -D APR_HAS_MMAP
> >  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
> >  -D APR_USE_SYSVSEM_SERIALIZE
> >  -D APR_USE_PTHREAD_SERIALIZE
> >  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
> >  -D APR_HAS_OTHER_CHILD
> >  -D AP_HAVE_RELIABLE_PIPED_LOGS
> >  -D HTTPD_ROOT="/usr"
> >  -D SUEXEC_BIN="/usr/sbin/suexec2"
> >  -D DEFAULT_PIDLOG="/var/run/httpd.pid"
> >  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
> >  -D DEFAULT_LOCKFILE="/var/run/accept.lock"
> >  -D DEFAULT_ERRORLOG="logs/error_log"
> >  -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
> >  -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"
> >
> > Here is where I think the configure script goes south:
> >
> > # Name of the executable.
> > as_me=`(basename "$0") 2>/dev/null ||                   ## This is
> > line 2951
> > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
> >          X"$0" : 'X\(//\)$' \| \
> >          X"$0" : 'X\(/\)$' \| \
> >          .     : '\(.\)' 2>/dev/null ||
> > echo X/"$0" |
> >     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
> >           /^X\/\(\/\/\)$/{ s//\1/; q; }
> >           /^X\/\(\/\).*/{ s//\1/; q; }
> >           s/.*/./; q'`
> >
> > Any help would be great, or I can file a bug report if someone tells
> > me where.
> >
> > Thx
> > W
> >
> > _______________________________________________
> > 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