Note that there are some explanatory texts on larger screens.

plurals
  1. POmod_wsgi on Snow Leopard python version mismatch
    text
    copied!<p>I'm trying to run mod_wsgi 3.1 under Apache 2.2.14 using a non-default python installation on Mac OS X 10.6.</p> <p>After downloading the mod_wsgi source I run:</p> <pre><code>sudo apachectl -k stop </code></pre> <p>then</p> <pre><code>./configure --with-python=/usr/local/Cellar/python/2.6.4/bin/python make sudo make install </code></pre> <p>I then start up apache again</p> <pre><code>sudo apachectl -k start </code></pre> <p>When I cat /var/log/httpd/error_log I see:</p> <blockquote> <p>[Mon Dec 21 12:27:26 2009] [warn] mod_wsgi: Compiled for Python/2.6.4.</p> <p>[Mon Dec 21 12:27:26 2009] [warn] mod_wsgi: <strong>Runtime using Python/2.6.1.</strong></p> <p>[Mon Dec 21 12:27:26 2009] [notice] Apache/2.2.14 (Unix) DAV/2 mod_wsgi/3.1 Python/2.6.1 configured -- resuming normal operations</p> </blockquote> <p>When I run otool -L mod_wsgi.so is see:</p> <blockquote> <p>mod_wsgi.so:</p> <p>/System/Library/Frameworks/Python.framework/Versions/2.6/Python (compatibility version 2.6.0, current version 2.6.1)</p> <p>/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0)</p> </blockquote> <p>What gives? Why is it linking with the system framework?</p> <p>Here is the output from my mod_wsgi configure and build commands:</p> <hr> <p>Archimedes:mod_wsgi-3.1 awolf$ ./configure --with-python=/usr/local/Cellar/python/2.6.4/bin/python</p> <p>checking for apxs2... no</p> <p>checking for apxs... /opt/apache2/bin/apxs</p> <p>checking Apache version... 2.2.14</p> <p>configure: creating ./config.status</p> <p>config.status: creating Makefile</p> <p>Archimedes:mod_wsgi-3.1 awolf$ make</p> <p>/opt/apache2/bin/apxs -c -I/usr/local/Cellar/python/2.6.4/include/python2.6 -DNDEBUG -Wc,'-arch x86_64' mod_wsgi.c -L/usr/local/Cellar/python/2.6.4/lib -L/usr/local/Cellar/python/2.6.4/lib/python2.6/config -arch x86_64 -lpython2.6 -ldl /Library/Webserver/build/libtool --silent --mode=compile gcc -prefer-pic -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 -I/opt/apache2/include -I/opt/apache2/include -I/opt/apache2/include -arch x86_64 -I/usr/local/Cellar/python/2.6.4/include/python2.6 -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c &amp;&amp; touch mod_wsgi.slo</p> <p>In file included from /usr/local/Cellar/python/2.6.4/include/python2.6/Python.h:125,</p> <pre><code> from mod_wsgi.c:135: </code></pre> <p>/usr/local/Cellar/python/2.6.4/include/python2.6/modsupport.h:27: warning: 'PyArg_ParseTuple' is an unrecognized format function type /Library/Webserver/build/libtool --silent --mode=link gcc -o mod_wsgi.la -rpath /opt/apache2/modules -module -avoid-version mod_wsgi.lo -L/usr/local/Cellar/python/2.6.4/lib -L/usr/local/Cellar/python/2.6.4/lib/python2.6/config -arch x86_64 -lpython2.6 -ldl</p> <p>Archimedes:mod_wsgi-3.1 awolf$ sudo make install</p> <p>Password:</p> <p>/opt/apache2/bin/apxs -i -S LIBEXECDIR=/opt/apache2/modules -n 'mod_wsgi' mod_wsgi.la</p> <p>/Library/Webserver/build/instdso.sh SH_LIBTOOL='/Library/Webserver/build/libtool' mod_wsgi.la /opt/apache2/modules</p> <p>/Library/Webserver/build/libtool --mode=install cp mod_wsgi.la /opt/apache2/modules/</p> <p>cp .libs/mod_wsgi.so /opt/apache2/modules/mod_wsgi.so</p> <p>cp .libs/mod_wsgi.lai /opt/apache2/modules/mod_wsgi.la</p> <p>cp .libs/mod_wsgi.a /opt/apache2/modules/mod_wsgi.a</p> <p>chmod 644 /opt/apache2/modules/mod_wsgi.a</p> <p>ranlib /opt/apache2/modules/mod_wsgi.a</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload