{"id":1982,"date":"2022-08-30T15:21:04","date_gmt":"2022-08-30T15:21:04","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/08\/apache-fastcgi-app-fails-to-find-suitable-libfcgi-mac-os-10-8-4-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:21:04","modified_gmt":"2022-08-30T15:21:04","slug":"apache-fastcgi-app-fails-to-find-suitable-libfcgi-mac-os-10-8-4-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/apache-fastcgi-app-fails-to-find-suitable-libfcgi-mac-os-10-8-4-collection-of-common-programming-errors\/","title":{"rendered":"Apache FastCGI app fails to find suitable libfcgi (Mac OS 10.8.4)-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to make an experimental FastCGI app and I keep getting a certain error.<\/p>\n<p>I&#8217;ve compiled all the binaries and libs except apache (shipped with Mac) on the machine.<\/p>\n<p>The error is as follows:<\/p>\n<pre><code>[Thu Jul 25 20:40:34 2013] [warn] FastCGI: (dynamic) server \"\/Library\/WebServer\/CGI-Executables\/tiny-cgi.fcgi\" started (pid 49396)\ndyld: Library not loaded: \/Users\/fasihrana\/Documents\/apparicion\/fcgi-dev\/lib\/libfcgi.0.dylib\n  Referenced from: \/Library\/WebServer\/CGI-Executables\/tiny-cgi.fcgi\n  Reason: no suitable image found.  Did find:\n    \/Users\/fasihrana\/Documents\/apparicion\/fcgi-dev\/lib\/libfcgi.0.dylib: stat() failed with errno=13\n[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)\n[Thu Jul 25 20:40:34 2013] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 0 in child 49398 for worker proxy:reverse\n[Thu Jul 25 20:40:34 2013] [debug] proxy_util.c(1837): proxy: worker proxy:reverse already initialized\n<\/code><\/pre>\n<p>and then the following:<\/p>\n<pre><code>[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\n[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)\n[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\"\n<\/code><\/pre>\n<p>I keep thinking its the compilation of the mod_fastcgi vs. the compilation of fastcgi app, but the &#8216;file&#8217; command reveals the following:<\/p>\n<pre><code>$ file tiny-cgi.fcgi \ntiny-cgi.fcgi: Mach-O 64-bit executable x86_64\n\n$ file mod_fastcgi.so \nmod_fastcgi.so: Mach-O 64-bit bundle x86_64\n\n# file \/usr\/sbin\/httpd\n\/usr\/sbin\/httpd: Mach-O 64-bit executable x86_64\n\n$ file libfcgi.0.dylib \nlibfcgi.0.dylib: Mach-O 64-bit dynamically linked shared library x86_64\n<\/code><\/pre>\n<p>I got the configuration and tutorial from http:\/\/spointeau.blogspot.co.uk\/2012\/08\/fastcgi-with-apache-on-mac-os-x-lion.html maybe I&#8217;m missing something else in the configuration.<\/p>\n<p>I&#8217;m running out of ideas, any help is appreciated.<\/p>\n<ol>\n<li>\n<p>Turns out I was using fastcgi-devkit 2.4.1 which isn&#8217;t stable or in a working condition. Installed 2.4.0 vis homebrew and it worked like a charm.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-12-08 05:32:33. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to make an experimental FastCGI app and I keep getting a certain error. I&#8217;ve compiled all the binaries and libs except apache (shipped with Mac) on the machine. The error is as follows: [Thu Jul 25 20:40:34 2013] [warn] FastCGI: (dynamic) server &#8220;\/Library\/WebServer\/CGI-Executables\/tiny-cgi.fcgi&#8221; started (pid 49396) dyld: Library not loaded: \/Users\/fasihrana\/Documents\/apparicion\/fcgi-dev\/lib\/libfcgi.0.dylib Referenced from: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1982","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1982"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1982\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}