469,271 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Newbie needs help with... his blood pressure ;-)

Hi

I'm trying to build mod_pyton on Leopard 10.5.4 on a Mac G5 with this
cvs version
http://svn.apache.org/repos/asf/quet...d_python/trunk

with this Python

python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin

So i did
../configure --with-apxs=/usr/sbin/apxs
--with-python=/usr/local/bin/python ARCHFLAGS='-arch ppc'

and I get

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 Apache version... 2.2.8
checking for Apache libexec directory... /usr/libexec/apache2
checking for Apache include directory... -I/usr/include/apache2
checking for --with-python... /usr/local/bin/python
checking Python version... 2.5
checking for --with-python-src... no
checking for --with-mutex-dir... no
Using MUTEX_DIR /tmp
checking for --with-max-locks... no
Using 8 MAX_LOCKS.
checking for --with-flex... no
checking for flex... /usr/bin/flex
found /usr/bin/flex, we'll use this. Use --with-flex to specify another.
checking flex version... 2.5.33. Good
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating Doc/Makefile
config.status: creating src/include/mod_python.h
config.status: creating test/Makefile
config.status: creating test/testconf.py
config.status: creating dist/setup.py
config.status: creating dist/Makefile

Seems good for my blood, but

make

gives this

Compiling for DSO.

/usr/sbin/apxs -I/Users/speciale/Desktop/dossier sans titre
3/src/include
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-DNDEBUG -Wc,'-arch ppc7400' -Wc,'-arch ppc64' -Wc,'-arch i386'
-Wc,'-arch x86_64' -c mod_python.c _apachemodule.c requestobject.c
tableobject.c util.c serverobject.c connobject.c filterobject.c hlist.c
hlistobject.c finfoobject.c -arch ppc7400 -arch ppc64 -arch i386 -arch
x86_64 -Wl,-F/Library/Frameworks -framework Python -u _PyMac_Error -ldl
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: *** [do_dso] Error 2

Am I already dead ?

Thanks Doctors ;-)

Luis
Aug 21 '08 #1
2 1027
Oups. Bad beginning. Sorry for the double post. Thunderbird has mental
problems

Luis
Aug 21 '08 #2
On 21 Aug, 14:57, Luis Speciale <lspeci...@gmail.comwrote:
>
/usr/sbin/apxs -I/Users/speciale/Desktop/dossier sans titre 3/src/include
[...]

I imagine that if this is really the command run by the Makefile, apxs
might get upset by the unquoted path which contains spaces. Either the
Makefile needs editing to "quote" the directory or you might want to
rename "dossier sans titre 3" to something without spaces... and
perhaps with a more informative name, too. ;-)

Paul
Aug 21 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by ragnarok8990 | last post: by
reply views Thread by Luis Speciale | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.