Jim Gallacher
jg.lists at sympatico.ca
Tue Oct 18 17:44:03 EDT 2005
As Jorey pointed out previously, to compile mod_python you need: ./configure --with-apxs=/usr/local/apache2/bin/apxs Regards, Jim Philippe C. Martin wrote: > Hi, > > This is why I installed apache in /usr/local ... confusing ! > > > [root at pcmsc mod_python-3.2.2b]# ./configure --with-apxs=/usr/local/apache2/bin > 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/local/apache2/bin executable, good > checking Apache version... ./configure: line 1: /usr/local/apache2/bin: is a > directory > ./configure: line 1: /usr/local/apache2/bin: is a directory > ./configure: line 1: /: is a directory > > configure: error: This version of mod_python only works with Apache 2. The one > you have seems to be . > > > Regards, > > Philippe > > > > On Tuesday 18 October 2005 07:16 pm, Philippe C. Martin wrote: > >>On Tuesday 18 October 2005 06:40 pm, Jorey Bump wrote: >> >>>Philippe C. Martin wrote: >>> >>>>As I have tried a few things, my httpd.conf has changed some (included >>>>at the end of this email). >>> >>>Just send the mod_python parts, not the whole thing. :) >> >>Right: excerpt from my last email: >> >>************ >>[SNIP] >>I also noticed that the localhost/mp pages shows "Apache/2.0.55 (Unix) >>mod_python/3.2.0b Python/2.4.2 Server at 127.0.0.1 Port 80" at the bottom. >> >>Index of /mp >> >>Icon Name Last modified Size Description[DIR] >>Parent Directory - >>[DIR] hide/ 18-Oct-2005 17:47 - >>[ ] index.py 18-Oct-2005 18:38 173 >> >>Apache/2.0.55 (Unix) mod_python/3.2.0b Python/2.4.2 Server at 127.0.0.1 >>Port 80 >> >>Also, I changed index.py to a much simpler script (but still no go): >> >>from mod_python import apache >> >>def handler(req): >> >> req.content_type = "text/plain" >> req.send_http_header() >> req.write("Hello World!") >> >> return apache.OK >>{SNIP] >>************ >> >> >>>>PS: I'm also using DSO as I have not managed to get the static version >>>>to >>> >>>Read the docs carefully: >>> >>> http://www.modpython.org/live/current/doc-html/inst-compiling.html >> >>Yes I did and figured it was OK >> >> >>> 2.2 Compiling >>> >>> At this time only DSO is supported by mod_python. >> >>OK >> >> >>>>configure, configure kept looking for config files/dirs in >>>>/usr/local/apache2 while I have apache installed in /usr/local - so I >>>>creation some symbolic link (conf, logs, icons) in /usr/local/apache2: >>>>I used to have apache pre-compiled but recompiled it for the above >>>>problem. >>> >>>Perhaps you should recompile apache and use the default location of >>>/usr/local/apache2. I find it to be cleaner. It's up to you, but you're >>>already using symlink hacks, so why not just use the default location? >>>In fact, if you're only compiling apache to install mod_python, you can >>>probably revert to the precompiled version for your platform, as long as >>>it's 2.x and includes all headers. What platform is this? >> >>I'll give it a shot and get back to you >> >> >>>>********* START - SATIC LINK************* >>>>./configure --with-apxs=/usr/local/apache2/bin/ >>> >>>This should point to the actual apxs binary: >> >>I actually did at the time as I had apache installed at the default >>location, I went back to /usr/local because of the static link "problem" >>and that I found /usr/local was recomended on some tutorial >> >> >>> ./configure --with-apxs=/usr/local/apache2/bin/apxs >>> >>> >>>>--with-apache=/home/philippe/downloaded/httpd-2.0.55/ >>> >>>This looks wrong, and you probably don't need this option, anyway. >> >>Well, this is where I have my apache source (where I type ./configure) >> >> >> >> >>So I'll try all over just in case. >> >>Regards, >> >>Philippe >> >> >>>_______________________________________________ >>>Mod_python mailing list >>>Mod_python at modpython.org >>>http://mailman.modpython.org/mailman/listinfo/mod_python > >
|