You are not logged in.

#1 2004-04-01 17:54:27

wintermute
Member
Registered: 2004-03-23
Posts: 21

mod_python

http://www.modpython.org/

This could be useful?


"I propose we leave math to the machines and go play outside." -- Calvin

Offline

#2 2004-04-01 19:06:31

wintermute
Member
Registered: 2004-03-23
Posts: 21

Re: mod_python

Btw: Could somebody point out where I'm going wrong below?

# ./configure --with-apxs=/usr/sbin/apxs --with-python=/usr/bin/python2.3
checking for gcc... gcc
checking for C compiler default output... 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 ar... ar
checking for a BSD-compatible install... /bin/install -c
checking whether make sets ${MAKE}... yes
checking for main in -lm... yes
checking for gcc option to accept ANSI C... none needed
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/sbin/apxs executable, good
checking Apache version... 2.0.49
checking for Apache libexec directory... /usr/lib/apache
checking for Apache include directory... -I/usr/include/apache
checking for --with-python... /usr/bin/python2.3
checking Python version... 2.3
checking Python install prefix... /usr
checking for Py_NewInterpreter in -lpython2.3... yes
checking what libraries Python was linked with... -lpython2.3   -lpthread -ldl  -lutil   -lm
checking linker flags used to link Python...
checking where Python include files are... -I/usr/include/python2.3
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating Doc/Makefile
config.status: creating test/testconf.py
config.status: creating dist/setup.py
config.status: creating dist/Makefile


# make
make[1]: Entering directory `/root/My Downloads/mod_python-3.1.3/src'

Compiling for DSO.

/usr/sbin/apxs -I/root/My Downloads/mod_python-3.1.3/src/include -I/usr/include/apache -I/usr/include/python2.3 -c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c serverobject.c connobject.c filterobject.c hlist.c hlistobject.c -L/usr/lib/python2.3/config  -Xlinker -export-dynamic      -lm  -lpython2.3   -lpthread -ldl  -lutil   -lm
Usage: apxs -g [-S <var>=<val>] -n <modname>
       apxs -q [-S <var>=<val>] <query> ...
       apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
               [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
               [-Wl,<flags>] [-p] <files> ...
       apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
       apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/root/My Downloads/mod_python-3.1.3/src'
make: *** [do_dso] Error 2
#

This usage text comes from apxs. I don't know why it appears in make.

Thanks in advance smile


"I propose we leave math to the machines and go play outside." -- Calvin

Offline

#3 2004-04-01 19:22:56

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: mod_python

I don't know anything about compiling mod_python but you have a space in "My Downloads" passed to the apxs as a parameter. Probably apxs sees word "Downloads" as another option and not a parameter value and complains about syntax. Just a shot... :-)

Offline

#4 2004-04-01 19:28:30

wintermute
Member
Registered: 2004-03-23
Posts: 21

Re: mod_python

That's true!

I'll try moving it elsewhere.

Thanks!  big_smile


"I propose we leave math to the machines and go play outside." -- Calvin

Offline

#5 2004-04-01 19:38:31

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: mod_python

wintermute wrote:

I'll try moving it elsewhere.
Thanks!  big_smile

No problem :-) I'm glad I could help. BTW: If you are going to make an arch package a very good place to compile it would be /var/abs/local/mod_python :-) (If you are using abs and makepkg of course)

Offline

#6 2004-06-30 17:57:55

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: mod_python

thanks for providing mod_python in AL!!
you're the (python) man.. tongue

btw what is this:
.PKGBUILD.swp ?

thxzzzzzzzzzzz~! (i know, but it's summer and really hot in Greece, better go swimming)

Offline

#7 2004-06-30 18:43:54

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: mod_python

zeppelin wrote:

.PKGBUILD.swp ?

.swp is usually a buffer for vim edited files; the .swp is removed when you close vim unless it crashes, which allows a recovery...

Dusty

Offline

#8 2004-06-30 20:58:45

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: mod_python

ok accidentaly some added it to the tar
anyways, I tried to set apache to work with it, (saw the docs in modpython.org) but couldn't make it neutral
I added the .so stuff correctly, but I was confused what to do next (the part about .htaccess or <Directory > etc..)
I remember seeing in wiki about tomcat and after .so you added something simpler and made the thing be used global.

anyone knows (maybe the packager?) how to *REALLY* enable python scripts to run in my httpd (localhost tongue)

thanks big time!

Offline

#9 2004-12-22 22:58:36

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: mod_python

wintermute wrote:
# ./configure --with-apxs=/usr/sbin/apxs --with-python=/usr/bin/python2.3
...
checking your blood pressure... a bit high, but we can proceed
...
#

ahahahahahahahahahaha

Offline

Board footer

Powered by FluxBB