Project

General

Profile

redmine set up with apache fcgi (function FCGX_Accept) is not working on my darwin mac os x mountain lion

Added by Sascha R. about 11 years ago

I would like to get running redmine on my mac mini, but i have a problem to run my apache using fcgi.

Systemversion: OS X 10.8.3 (12D78)
Kernel-Version: Darwin 12.3.0

Environment:
  • Redmine version 2.3.0.stable
  • Ruby version 1.8.7 (universal-darwin12.0)
  • Rails version 3.2.13
  • Environment production
  • Database adapter Mysql2
Redmine plugins:
  • no plugin installed
I have installed:
  • fcgi-2.4.0
  • mod_fastcgi-2.4.6

I'm in my redmine root directory:

sudo gem install fcgi

gives me:

checking for fcgiapp.h... yes
checking for FCGX_Accept() in -lfcgi... no

I looked into the directory /Library/Ruby/Gems/1.8/gems/fcgi-0.9.1/ext/fcgi and I found the place where this problem occurs.

extconf.rb contains:

require "mkmf" 

dir_config("fcgi")

if (have_header("fcgiapp.h") || have_header("fastcgi/fcgiapp.h")) && have_library("fcgi", "FCGX_Accept")
  create_makefile("fcgi")
end

The following function result is false: have_library("fcgi", "FCGX_Accept")

I would be really grateful for any help on this.

Thanks in advance.


Replies (4)

RE: redmine set up with apache fcgi (function FCGX_Accept) is not working on my darwin mac os x mountain lion - Added by Paresh Patel about 11 years ago

hi,,

hi ,

your problem is solve 100 % solve

http://www.turnkeylinux.org/download?file=turnkey-redmine-12.0-squeeze-x86.iso

or

vmk file install in lions vmware install then add this above source

this above link source is download then this source is os version redmine exampl for your using xp lion installation same this source install

RE: redmine set up with apache fcgi (function FCGX_Accept) is not working on my darwin mac os x mountain lion - Added by Dmitry Popov almost 11 years ago

I experience the same problem here trying to install fcgi gem on Windows.

ERROR:  Error installing fcgi:
        ERROR: Failed to build gem native extension.

        C:/Ruby/bin/ruby.exe extconf.rb --with-opt-dir=c:/fcgi/
checking for fcgiapp.h... yes
checking for FCGX_Accept() in -lfcgi... no

I wonder if you solved it.

RE: redmine set up with apache fcgi (function FCGX_Accept) is not working on my darwin mac os x mountain lion - Added by Sascha R. almost 11 years ago

I'm using the apache passenger module instead of fcgi and this is working for me.

I have the following in my httpd-vhosts.conf file:

LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-3.0.19
PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

<VirtualHost *:81>
    ServerName mini
    DocumentRoot /opt/redmine/redmine/public
    <Directory /opt/redmine/redmine/public>
        AllowOverride all
        Options -MultiViews
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog /var/log/apache2/redmine-error.log
    CustomLog /var/log/apache2/redmine-access.log combined
</VirtualHost>

RE: redmine set up with apache fcgi (function FCGX_Accept) is not working on my darwin mac os x mountain lion - Added by Dmitry Popov almost 11 years ago

Thanks for the reply! I'll give it a try.

Update:
I didn't succeed in it, and there's a good reason for that:

Phusion Passenger works on any POSIX-compliant operating system. In other words: practically any operating system on earth, except Microsoft Windows.
    (1-4/4)