Re: Errors installing mod_python with apache

2011-12-27 Thread Mark Seger
I did try yum and got this:

[root@rhel53 tmp]# yum install mod_python
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
No package mod_python available.
Nothing to do

after further digging around I did find rh's mod_python rpm so I installed
than and now seem to be ok.  nevertheless it still bothers me the
'standard' tarball install didn't work.  but I guess I'll leave that to
others to worry about.

thanks
-mark

On Tue, Dec 27, 2011 at 12:02 PM, Rami Chowdhury
wrote:

> On Tue, Dec 27, 2011 at 13:32, Mark Seger  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
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Errors installing mod_python with apache

2011-12-27 Thread Rami Chowdhury
On Tue, Dec 27, 2011 at 13:32, Mark Seger  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
-- 
http://mail.python.org/mailman/listinfo/python-list


Errors installing mod_python with apache

2011-12-27 Thread Mark Seger
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?

-mark
-- 
http://mail.python.org/mailman/listinfo/python-list