実験的な FastCGI アプリを作成しようとしていますが、特定のエラーが発生し続けます。
Apache (Mac に同梱) を除くすべてのバイナリとライブラリをマシンにコンパイルしました。
エラーは次のとおりです。
[Thu Jul 25 20:40:34 2013] [warn] FastCGI: (dynamic) server "/Library/WebServer/CGI-Executables/tiny-cgi.fcgi" started (pid 49396)
dyld: Library not loaded: /Users/fasihrana/Documents/apparicion/fcgi-dev/lib/libfcgi.0.dylib
Referenced from: /Library/WebServer/CGI-Executables/tiny-cgi.fcgi
Reason: no suitable image found. Did find:
/Users/fasihrana/Documents/apparicion/fcgi-dev/lib/libfcgi.0.dylib: stat() failed with errno=13
[Thu Jul 25 20:40:34 2013] [warn] FastCGI: (dynamic) server "/Library/WebServer/CGI-Executables/tiny-cgi.fcgi" (pid 49396) terminated due to uncaught signal '5' (Trace/BPT trap)
[Thu Jul 25 20:40:34 2013] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 0 in child 49398 for worker proxy:reverse
[Thu Jul 25 20:40:34 2013] [debug] proxy_util.c(1837): proxy: worker proxy:reverse already initialized
そして、次のとおりです。
[Thu Jul 25 20:41:07 2013] [warn] FastCGI: (dynamic) server "/Library/WebServer/CGI-Executables/tiny-cgi.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jul 25 20:41:07 2013] [error] [client ::1] FastCGI: comm with (dynamic) server "/Library/WebServer/CGI-Executables/tiny-cgi.fcgi" aborted: (first read) idle timeout (30 sec)
[Thu Jul 25 20:41:07 2013] [error] [client ::1] FastCGI: incomplete headers (0 bytes) received from server "/Library/WebServer/CGI-Executables/tiny-cgi.fcgi"
mod_fastcgi のコンパイルと fastcgi アプリのコンパイルの違いだと思いますが、「file」コマンドを実行すると、次のことがわかります。
$ file tiny-cgi.fcgi
tiny-cgi.fcgi: Mach-O 64-bit executable x86_64
$ file mod_fastcgi.so
mod_fastcgi.so: Mach-O 64-bit bundle x86_64
# file /usr/sbin/httpd
/usr/sbin/httpd: Mach-O 64-bit executable x86_64
$ file libfcgi.0.dylib
libfcgi.0.dylib: Mach-O 64-bit dynamically linked shared library x86_64
http://spointeau.blogspot.co.uk/2012/08/fastcgi-with-apache-on-mac-os-x-lion.htmlから構成とチュートリアルを取得しました 構成に何か他のものが欠けている可能性があります.
私はアイデアが不足しています。どんな助けも大歓迎です。