I am actually surprised you got mod_python working in the first place
unless you did some fiddles you haven't mentioned here. We have been
sorting out issues with mod_python and mod_wsgi not working on Leopard
over on the mod_python list.
Short answer is, try editing src/Makefile in mod_python after running
configure and change:
mod_python.so: $(SRCS)
@echo
@echo 'Compiling for DSO.'
@echo
$(APXS) $(INCLUDES) -c $(SRCS) $(LDFLAGS) $(LIBS)
@rm -f mod_python.so
@ln -s .libs/mod_python.so mod_python.so
to:
mod_python.so: $(SRCS)
@echo
@echo 'Compiling for DSO.'
@echo
$(APXS) $(INCLUDES) -c -Wc,"-arch ppc" -Wc,"-arch ppc64" -Wc,"-
arch i386" -Wc,"-arch x86_64" $(SRCS) $(LDFLAGS) $(LIBS)
@rm -f mod_python.so
@ln -s .libs/mod_python.so mod_python.so
Ie., add the arch options in explicitly.
Recompile and reinstall mod_python and see if that makes a difference.
Graham
On Oct 31, 6:57 am, crudolph <[EMAIL PROTECTED]> wrote:
> Yeah - I downloaded fromhttp://sourceforge.net/projects/mysql-python,
> unzipped and ran python setup.py build and then install.
>
> Under Leopard (10.5) apache2 is 4-way, so it is running in 64-bit
> mode. I haven't been able to figure out how to pass the right
> architecture flags through setup.py
>
> cc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
> madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -
> DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -pipe -
> Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/usr/local/mysql/
> include -I/System/Library/Frameworks/Python.framework/Versions/2.5/
> include/python2.5 -c _mysql.c -o build/temp.macosx-10.5-i386-2.5/
> _mysql.o -Os -arch i386 -fno-common
> gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc -
> arch ppc64 -arch x86_64 build/temp.macosx-10.5-i386-2.5/_mysql.o -L/
> usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lm -o build/
> lib.macosx-10.5-i386-2.5/_mysql.so
> ld: warning in build/temp.macosx-10.5-i386-2.5/_mysql.o, file is not
> of required architecture
> ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file
> is not of required architecture
> ld: warning in build/temp.macosx-10.5-i386-2.5/_mysql.o, file is not
> of required architecture
> ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file
> is not of required architecture
> ld: warning in build/temp.macosx-10.5-i386-2.5/_mysql.o, file is not
> of required architecture
> ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file
> is not of required architecture
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---