0

我正在尝试制作一个实验性的 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 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获得了配置和教程,也许我在配置中遗漏了其他内容.

我的想法不多了,感谢您的帮助。

4

1 回答 1

0

原来我使用的是 fastcgi-devkit 2.4.1,它不稳定或处于工作状态。安装了 2.4.0 vis homebrew,它就像一个魅力。

于 2013-07-29T12:49:25.947 回答