You are not logged in.
Pages: 1
This could be useful?
"I propose we leave math to the machines and go play outside." -- Calvin
Offline
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
"I propose we leave math to the machines and go play outside." -- Calvin
Offline
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
That's true!
I'll try moving it elsewhere.
Thanks!
"I propose we leave math to the machines and go play outside." -- Calvin
Offline
I'll try moving it elsewhere.
Thanks!
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
thanks for providing mod_python in AL!!
you're the (python) man..
btw what is this:
.PKGBUILD.swp ?
thxzzzzzzzzzzz~! (i know, but it's summer and really hot in Greece, better go swimming)
Offline
.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
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
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 )
thanks big time!
Offline
# ./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
Pages: 1