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

时间:2013-07-26 11:55:17

标签: c++ apache fastcgi mod-fastcgi

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

我的想法已经用完了,感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

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