Thanks! Yeah, looks like that was it. Still having trouble getting apache 
to recompile with mod_rewrite, but that's a different story.

On Sunday, December 2, 2012 4:46:17 AM UTC-5, Graham Dumpleton wrote:
>
> Possibly because your Apache is 32 bit and not 64 bit.
>
> Use the 'file' command to work out what architectures are compiled into 
> Apache, Python and mod_wsgi.so.
>
> http://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX
>
> Graham
>
>
> On 1 December 2012 04:14, gabewb <[email protected] <javascript:>> wrote:
>
>> While the install process looked fine, I get the following error when I 
>> try to load wsgi in apache:
>>
>> $ sudo bin/zendctl.sh start-apache
>>
>> httpd: Syntax error on line 54 of 
>> /usr/local/zend/apache2/conf/httpd.conf: Cannot load 
>> /usr/libexec/apache2/mod_wsgi.so into server: 
>> dlopen(/usr/libexec/apache2/mod_wsgi.so, 10): no suitable image found.  Did 
>> find:\n\t/usr/libexec/apache2/mod_wsgi.so: mach-o, but wrong architecture
>> /usr/local/zend/bin/apachectl start [FAILED]
>>
>>
>> My setup output:
>> $ ./configure
>> checking for apxs2... no
>> checking for apxs... /usr/sbin/apxs
>> checking Apache version... 2.2.22
>> checking for python... /usr/local/bin/python
>> configure: creating ./config.status
>> config.status: creating Makefile
>>
>> $ make
>> /usr/sbin/apxs -c 
>> -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7
>>  
>> -DNDEBUG  -Wc,'-arch x86_64' mod_wsgi.c 
>> -Wl,-F/usr/local/Cellar/python/2.7.3/Frameworks -framework Python -u 
>> _PyMac_Error   -arch x86_64 -ldl  -framework CoreFoundation  
>> /usr/share/apr-1/build-1/libtool --silent --mode=compile 
>> /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
>>  
>>    -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include 
>> -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1  -arch 
>> x86_64 
>> -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7
>>  
>> -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
>> mod_wsgi.c:9375:23: warning: using the result of an assignment as a 
>> condition without parentheses [-Wparentheses]
>>             if (value = apr_table_get(r->notes, "mod_wsgi.process_group"))
>>                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> [..... bunch of presumably benign = vs == warnings]
>> 7 warnings generated.
>> /usr/share/apr-1/build-1/libtool --silent --mode=link 
>> /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
>>  
>> -o mod_wsgi.la  -rpath /usr/libexec/apache2 -module -avoid-version   
>>  mod_wsgi.lo -Wl,-F/usr/local/Cellar/python/2.7.3/Frameworks -framework 
>> Python -u _PyMac_Error -arch x86_64 -ldl -framework CoreFoundation
>> warning: no debug symbols in executable (-arch x86_64)
>>
>> $ sudo make install
>> /usr/sbin/apxs -i -S LIBEXECDIR=/usr/libexec/apache2 -n 'mod_wsgi' 
>> mod_wsgi.la
>> /usr/share/httpd/build/instdso.sh 
>> SH_LIBTOOL='/usr/share/apr-1/build-1/libtool' mod_wsgi.la/usr/libexec/apache2
>> /usr/share/apr-1/build-1/libtool --mode=install cp 
>> mod_wsgi.la/usr/libexec/apache2/
>> cp .libs/mod_wsgi.so /usr/libexec/apache2/mod_wsgi.so
>> cp .libs/mod_wsgi.lai /usr/libexec/apache2/mod_wsgi.la
>> cp .libs/mod_wsgi.a /usr/libexec/apache2/mod_wsgi.a
>> chmod 644 /usr/libexec/apache2/mod_wsgi.a
>> ranlib /usr/libexec/apache2/mod_wsgi.a
>> ----------------------------------------------------------------------
>> Libraries have been installed in:
>>    /usr/libexec/apache2
>>
>> If you ever happen to want to link against installed libraries
>> in a given directory, LIBDIR, you must either use libtool, and
>> specify the full pathname of the library, or use the `-LLIBDIR'
>> flag during linking and do at least one of the following:
>>    - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
>>      during execution
>>
>> See any operating system documentation about shared libraries for
>> more information, such as the ld(1) and ld.so(8) manual pages.
>> ----------------------------------------------------------------------
>> chmod 755 /usr/libexec/apache2/mod_wsgi.so
>>
>>
>> Then I edited /usr/local/zend/apache2/conf/httpd.conf :
>> ...
>> # LoadModule foo_module modules/mod_foo.so
>> #
>> LoadModule wsgi_module /usr/libexec/apache2/mod_wsgi.so
>> ...
>>
>> Running the command at the top of now generates the error. 
>>
>> Python version info:
>> >>> import sys
>> >>> sys.version
>> '2.7.3 (default, Nov 30 2012, 10:51:01) \n[GCC 4.2.1 Compatible Apple 
>> Clang 4.1 ((tags/Apple/clang-421.11.66))]'
>> >>> sys.maxsize
>> 9223372036854775807
>>
>> (That's 2^63 +1, confirming that I'm running it in 64-bit mode)
>>
>> Incidentally, brew install mod_wsgi gives "No available formula"
>>
>> I spent most of this morning and yesterday afternoon googling and trying 
>> to get this to work -- any help you can give would be greatly appreciated!
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "modwsgi" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/modwsgi/-/sPe4CCV_RpIJ.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> [email protected] <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/modwsgi?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/modwsgi/-/fa9axFe9wzUJ.
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/modwsgi?hl=en.

Reply via email to