Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18029 > unrolled thread

Re: Errors installing mod_python with apache

Started byRami Chowdhury <rami.chowdhury@gmail.com>
First post2011-12-27 17:02 +0000
Last post2011-12-27 17:02 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Errors installing mod_python with apache Rami Chowdhury <rami.chowdhury@gmail.com> - 2011-12-27 17:02 +0000

#18029 — Re: Errors installing mod_python with apache

FromRami Chowdhury <rami.chowdhury@gmail.com>
Date2011-12-27 17:02 +0000
SubjectRe: Errors installing mod_python with apache
Message-ID<mailman.4138.1325005328.27778.python-list@python.org>
On Tue, Dec 27, 2011 at 13:32, Mark Seger <mjseger@gmail.com> wrote:
> I've tried this on both RHEL5.5 and RHEL 6.0, using the default apache that
> comes with the environment and itself isn't configured with mod_python.
>
> The first thing I noticed when mod_python wouldn't install was that apsx
> wasn't installed either.  After a lot of pain, I discovered httpd-devel
> provided apsx and so installed that.
>
> Back to mod_python.  After running ./configure --with-apxs=/usr/sbin/apxs,
> according to the README I need to run "make dso", but that promptly blows up
> because it's looking for header files in /usr/include/httpd and itlooks like
> the apxs files are in /usr/include/apr1, so I copied all its contents to
> /usr/include/httpd.
>
> Now when I try to make dso, it successfully gets past finding its header
> files but now fails with:
>
> [root@rhel6 mod_python-2.7.10]#  make dso
> make[1]: Entering directory `/tmp/mod_python-2.7.10/src'
> gcc  -I/tmp/mod_python-2.7.10/src/include -I/usr/include/httpd
> -I/usr/include/python2.6    -c -o mod_python.o mod_python.c
> In file included from /usr/include/python2.6/pyconfig.h:6,
>                  from /usr/include/python2.6/Python.h:8,
>                  from /tmp/mod_python-2.7.10/src/include/mod_python.h:77,
>                  from mod_python.c:54:
> /usr/include/python2.6/pyconfig-64.h:1031:1: warning: "_POSIX_C_SOURCE"
> redefined
> In file included from /usr/include/sys/types.h:26,
>                  from /usr/include/httpd/apr-x86_64.h:127,
>                  from /usr/include/httpd/apr.h:19,
>                  from /usr/include/httpd/ap_config.h:25,
>                  from /usr/include/httpd/httpd.h:43,
>                  from /tmp/mod_python-2.7.10/src/include/mod_python.h:63,
>                  from mod_python.c:54:
> /usr/include/features.h:213:1: warning: this is the location of the previous
> definition
> In file included from mod_python.c:54:
> /tmp/mod_python-2.7.10/src/include/mod_python.h:93: error: expected â=â,
> â,â, â;â, âasmâ or â__attribute__â before â*â token
> /tmp/mod_python-2.7.10/src/include/mod_python.h:96: error: expected â=â,
> â,â, â;â, âasmâ or â__attribute__â before âpython_moduleâ
> In file included from /tmp/mod_python-2.7.10/src/include/mod_python.h:99,
>                  from mod_python.c:54:
> /tmp/mod_python-2.7.10/src/include/util.h:57: error: expected â;â, â,â or
> â)â before â*â token
> In file included from /tmp/mod_python-2.7.10/src/include/mod_python.h:100,
>                  from mod_python.c:54:
>
> and a lot more.  Can anyone help?

Is there a reason you're not using the system package manager? Does
"yum install mod_python" not find anything? How about "yum provides
*/mod_python.so"?


-- 
Rami Chowdhury
"A mind all logic is like a knife all blade - it makes the hand bleed
that uses it." -- Rabindranath Tagore
+44-7581-430-517 / +1-408-597-7068 / +88-0189-245544

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web