mod_wsgi 3.3を使用するために、OSX 10.7.2 LionでXAMPP 1.7.3を設定しようとしています。ここに私がやっていることがあります:OSX LionのXAMPPにmod_wsgiをインストールする
- XAMPP for OSX 1.7.3とDeveloper Packageがインストールされています。この時点で、すべてがうまくいきます。
- ダウンロードし、このコピーはOSXのApacheにファイルmod_wsgi.soコンパイルが、私はXAMPPでそれをしたいので、私はコピーhttp://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz
./configure
make
sudo make install
- を抽出:
sudo cp /usr/libexec/apache2/mod_wsgi.so /Applications/XAMPP/xamppfiles/modules/
- XAMPPにモジュールを追加httpd.conf
LoadModule wsgi_module modules/mod_wsgi.so
XAMPP Apacheを開始します。次のerror_logで予告:
[notice] Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_wsgi/3.3 Python/2.7.1 PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
私はhttp://localhostを訪れたとき、私は(クローム経由)、このエラーが出る:
`Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.`
と、このエラーは、error_logのに印刷されています
`[notice] child pid 22847 exit signal Bus error (10)`
このエラーのトラブルシューティング方法や紛失しているものについてはわかりません。どんな洞察もありがとう!
UPDATE私は、このコマンドでApacheの拡張モジュールを使用して論じブログhereを見つけ
:
./configure --with-apxs=/Applications/XAMPP/xamppfiles/bin/apxs --with-python=/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
configureがよさそうだが、私はこのコンパイラエラーを取得:
を/Applications/XAMPP/xamppfiles/bin/apxs -c -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -DENABLE_DTRACE -DMACOSX -DNDEBUG -DNDEBUG -DENABLE_DTRACE -Wc,'-arch i386' -Wc,'-arch ppc' mod_wsgi.c -Wl,-F/System/Library/Frameworks -framework Python -u _PyMac_Error /System/Library/Frameworks/ -arch i386 -arch ppc -ldl -framework CoreFoundation
Use of assignment to $[ is deprecated at /Applications/XAMPP/xamppfiles/bin/apxs line 86.
/Applications/XAMPP/xamppfiles/build/libtool --silent --mode=compile gcc -prefer-pic -I/Applications/XAMPP/xamppfiles/include -L/Applications/XAMPP/xamppfiles/lib -mmacosx-version-min=10.4 -arch i386 -arch ppc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/Applications/XAMPP/xamppfiles/include -I/Applications/XAMPP/xamppfiles/include -I/Applications/XAMPP/xamppfiles/include -I/Applications/XAMPP/xamppfiles/include -arch i386 -arch ppc -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -DENABLE_DTRACE -DMACOSX -DNDEBUG -DNDEBUG -DENABLE_DTRACE -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
lipo: can't figure out the architecture type of: /var/tmp//cco5iCcm.out
apxs:Error: Command failed with rc=65536
おかげでグラハムを!私は[this](http://www.mals.me/2011/10/running-django-with-xampp-on-os-x.html)の例を挙げました: './configure --with -apxs =/Applications/XAMPP/xamppfiles/bin/apxs --with-python =/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7' ...コンパイラエラーが発生します。私はテキストを編集質問に入れます。 –
Python 2.7がシステム全体のデフォルトのPythonであれば、おそらく--with-pythonは必要ありませんでした。そうでなければ、代わりに/usr/bin/python2.7を参照する可能性があります。コンパイルエラーは、おそらく/ Applications/XAMPP/xamppfiles/bin/apxsの最初のエラーと関連しています。なぜ彼らのapxsが失敗しているのかをXAMPPに尋ねる。 –