Project

General

Profile

Installing on Centos 6 'cannot load such file -- fcgi' [SOLVED]

Added by Rob Rob about 11 years ago

I'm attempting to install a standard version of Redmine on a Centos 6 server. It works using webrick, but I can't get it working otherwise.

  1. ./public/dispatch.fcgi.example
    /usr/lib64/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- fcgi (LoadError)
    from /usr/lib64/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
    from /usr/lib64/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /usr/lib64/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
    from /usr/lib64/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/handler/fastcgi.rb:1:in `<top (required)>'
    from ./public/dispatch.fcgi.example:20:in `<main>'

Updating my own ticket with a fix: Went here and followed the instructions so I could expand the list of packages to install: http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x Then I could do a 'yum install mod_fcgid fcgi_devl' followed by adding a Gemfile.local with 'gem "fcgi"', then 'bundle install'. Phew. Redmine is definitely one of the most tricky installs I've done.

// So I tried loading the fcgi gem:

  1. gem install fcgi
    Building native extensions. This could take a while...
    ERROR: Error installing fcgi:
    ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb
    checking for fcgiapp.h... no
    checking for fastcgi/fcgiapp.h... no

make
make: *** No targets. Stop.

Gem files will remain installed in /usr/lib64/ruby/gems/1.9.1/gems/fcgi-0.9.1 for inspection.
Results logged to /usr/lib64/ruby/gems/1.9.1/gems/fcgi-0.9.1/ext/fcgi/gem_make.out

// So I need a header file...

  1. yum install fcgi-devel
    Loaded plugins: fastestmirror, presto, priorities, security
    Loading mirror speeds from cached hostfile * base: centos.mirroring.pulsant.co.uk * extras: anorien.csc.warwick.ac.uk * rpmforge: apt.sw.be * updates: centos.mirroring.pulsant.co.uk
    15 packages excluded due to repository priority protections
    Setting up Install Process
    No package fcgi-devel available.
    Error: Nothing to do

// stuck! (Apache is installed with mod_fcgid if that's relevant)
Any help would be much appreciated. I'm trying to present Redmine as a solution for my company!

// further info:
  1. RAILS_ENV=production script/about

Environment:
Redmine version 2.3.1.stable.11984
Ruby version 1.9.3 (x86_64-linux)
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed

  1. gem list
  • LOCAL GEMS ***

actionmailer (4.0.0, 3.2.13)
actionpack (4.0.0, 3.2.13)
activemodel (4.0.0, 3.2.13)
activerecord (4.0.0, 3.2.13)
activerecord-deprecated_finders (1.0.3)
activeresource (4.0.0, 3.2.13)
activesupport (4.0.0, 3.2.13)
arel (4.0.0, 3.0.2)
atomic (1.1.10)
bigdecimal (1.1.0)
builder (3.1.4, 3.0.0)
bundler (1.3.5)
coderay (1.0.9)
daemon_controller (1.1.4)
erubis (2.7.0)
hike (1.2.3)
i18n (0.6.4, 0.6.1)
io-console (0.4.2)
journey (1.0.4)
jquery-rails (3.0.1, 2.0.3)
json (1.8.0)
mail (2.5.4)
mime-types (1.23)
minitest (4.7.5, 2.5.1)
multi_json (1.7.7)
mysql (2.9.1)
mysql2 (0.3.11)
net-ldap (0.3.1)
passenger (4.0.5)
polyglot (0.3.3)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-openid (1.3.1)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (4.0.0, 3.2.13)
rails-observers (0.1.1)
railties (4.0.0, 3.2.13)
rake (10.1.0)
rdoc (4.0.1, 3.12.2)
rmagick (2.13.2)
ruby-openid (2.2.3, 2.1.8)
rubygems-update (2.0.3)
sprockets (2.10.0, 2.2.2)
sprockets-rails (2.0.0)
thor (0.18.1)
thread_safe (0.1.0)
tilt (1.4.1)
treetop (1.4.14)
tzinfo (1.0.1, 0.3.37)