Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'help?': 0.03; 'skip:/ 40': 0.07; 'either.': 0.09; 'error:': 0.10; '6.0,': 0.16; 'rhel': 0.16; 'skip:/ 50': 0.16; 'skip:\xc2 30': 0.16; 'subject:installing': 0.16; 'subject:mod_python': 0.16; 'cc:addr:python-list': 0.16; "wouldn't": 0.17; 'wrote:': 0.18; 'cc:no real name:2**0': 0.20; 'apache': 0.21; 'dec': 0.22; 'header:In-Reply-To:1': 0.22; 'gcc': 0.23; 'skip:` 20': 0.23; 'noticed': 0.24; 'cc:2**0': 0.24; 'tried': 0.27; "wasn't": 0.28; 'message-id:@mail.gmail.com': 0.28; '27,': 0.29; 'cc:addr:python.org': 0.29; 'environment': 0.30; 'definition': 0.30; '"make': 0.30; 'logic': 0.30; 'installed': 0.31; 'anyone': 0.31; "i've": 0.31; 'does': 0.32; 'tue,': 0.32; "isn't": 0.33; 'there': 0.33; 'copied': 0.34; 'it."': 0.34; 'running': 0.35; 'install': 0.35; 'file': 0.36; 'uses': 0.36; 'subject:with': 0.36; 'skip:" 10': 0.37; 'but': 0.37; 'run': 0.37; 'received:74.125': 0.37; 'received:google.com': 0.37; 'using': 0.38; 'configured': 0.38; 'finding': 0.39; 'header': 0.39; 'files': 0.39; 'mark': 0.39; "it's": 0.40; 'according': 0.61; '2011': 0.61; 'provided': 0.62; 'back': 0.62; 'skip:+ 10': 0.66; 'skip:. 40': 0.67; 'discovered': 0.68; '8bit%:24': 0.84; 'blade': 0.84; 'knife': 0.84; 'skip:\xc3 10': 0.84; 'subject:Errors': 0.84; 'promptly': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=a/z8f5kYg31dxHsevdtDJ1iumNDFDlOzbedMDZPbC6s=; b=LxlyT6NUVVNw+61YmKuzWiWLeBkr1SEgubHW4h2aZWhYiXmbDJ53+61M476HG5IRBx mN7pGftibKx/6ldVJqKyDUT+p7sS+oDKFqcK2q7WgBxUdU6oATHlYVtx3qdV45wHrRAO pJO01tWzar3lXKIjvumIfoBA0fOHy+pmeGMBo= MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 27 Dec 2011 17:02:06 +0000 Subject: Re: Errors installing mod_python with apache From: Rami Chowdhury To: Mark Seger Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 83 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325005328 news.xs4all.nl 6846 [2001:888:2000:d::a6]:54004 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18029 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 th= at > 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. =C2=A0After a lot of pain, I discovered httpd-de= vel > provided apsx and so installed that. > > Back to mod_python. =C2=A0After running ./configure=C2=A0--with-apxs=3D/u= sr/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 l= ike > 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]# =C2=A0make dso > make[1]: Entering directory `/tmp/mod_python-2.7.10/src' > gcc =C2=A0-I/tmp/mod_python-2.7.10/src/include -I/usr/include/httpd > -I/usr/include/python2.6 =C2=A0 =C2=A0-c -o mod_python.o mod_python.c > In file included from /usr/include/python2.6/pyconfig.h:6, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from /usr/i= nclude/python2.6/Python.h:8, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from /tmp/m= od_python-2.7.10/src/include/mod_python.h:77, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from mod_py= thon.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, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from /usr/i= nclude/httpd/apr-x86_64.h:127, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from /usr/i= nclude/httpd/apr.h:19, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from /usr/i= nclude/httpd/ap_config.h:25, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from /usr/i= nclude/httpd/httpd.h:43, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from /tmp/m= od_python-2.7.10/src/include/mod_python.h:63, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from mod_py= thon.c:54: > /usr/include/features.h:213:1: warning: this is the location of the previ= ous > definition > In file included from mod_python.c:54: > /tmp/mod_python-2.7.10/src/include/mod_python.h:93: error: expected =C3= =A2=3D=C3=A2, > =C3=A2,=C3=A2, =C3=A2;=C3=A2, =C3=A2asm=C3=A2 or =C3=A2__attribute__=C3= =A2 before =C3=A2*=C3=A2 token > /tmp/mod_python-2.7.10/src/include/mod_python.h:96: error: expected =C3= =A2=3D=C3=A2, > =C3=A2,=C3=A2, =C3=A2;=C3=A2, =C3=A2asm=C3=A2 or =C3=A2__attribute__=C3= =A2 before =C3=A2python_module=C3=A2 > In file included from /tmp/mod_python-2.7.10/src/include/mod_python.h:99, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from mod_py= thon.c:54: > /tmp/mod_python-2.7.10/src/include/util.h:57: error: expected =C3=A2;=C3= =A2, =C3=A2,=C3=A2 or > =C3=A2)=C3=A2 before =C3=A2*=C3=A2 token > In file included from /tmp/mod_python-2.7.10/src/include/mod_python.h:100= , > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from mod_py= thon.c:54: > > and a lot more. =C2=A0Can 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"? --=20 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