Apache FastCGI应用程序无法找到合适的libfcgi(Mac OS 10.8.4)

Apache FastCGI app fails to find suitable libfcgi (Mac OS 10.8.4)

本文关键字:Mac libfcgi OS 应用程序 FastCGI Apache      更新时间:2023-10-16

我正在尝试制作一个实验性的FastCGI应用程序,但我一直遇到一些错误。

我已经在机器上编译了除了apache(Mac附带)之外的所有二进制文件和lib。

错误如下:

[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也许我在配置中遗漏了其他内容。

我没有什么想法了,任何帮助都很感激。

原来我使用的是fastcgi-devkit 2.4.1,它不稳定或处于工作状态。安装了2.4.0 vis自制软件,工作起来很有魅力。