Submitted by beat on Sun, 03/28/2010 - 17:16
Virtualmin-update of Redmine script from 0.9.1 to 0.9.3 does error:
Upgrading redmine to version 0.9.3 ..
Installing Ruby Gem test-spec ..
.. done
Installing Ruby Gem camping ..
.. done
Installing Ruby Gem fcgi ..
.. Gem install failed : INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list Building native extensions. This could take a while... ERROR: Error installing fcgi: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for fcgiapp.h... no checking for fastcgi/fcgiapp.h... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby1.8 --with-fcgi-dir --without-fcgi-dir --with-fcgi-include --without-fcgi-include=${fcgi-dir}/include --with-fcgi-lib --without-fcgi-lib=${fcgi-dir}/lib Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.8 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.8/ext/fcgi/gem_make.out
Return to list of scripts
Upgraded Ruby to latest, but no success:
RubyGems 1.3.6 installed
Here some more info from the error:
more /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.8/ext/fcgi/gem_make.out
/usr/bin/ruby1.8 extconf.rb
checking for fcgiapp.h... no
checking for fastcgi/fcgiapp.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
--with-fcgi-dir
--without-fcgi-dir
--with-fcgi-include
--without-fcgi-include=${fcgi-dir}/include
--with-fcgi-lib
--without-fcgi-lib=${fcgi-dir}/lib
more /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.8/ext/fcgi/mkmf.log
have_header: checking for fcgiapp.h... -------------------- no
"cc -E -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -fno-strict-aliasing -g -g -O2 -fPIC conftest.c -o conftest
.i"
conftest.c:1:21: error: fcgiapp.h: No such file or directory
checked program was:
/* begin */
1: #include <fcgiapp.h>
/* end */
--------------------
have_header: checking for fastcgi/fcgiapp.h... -------------------- no
"cc -E -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -fno-strict-aliasing -g -g -O2 -fPIC conftest.c -o conftest
.i"
conftest.c:1:29: error: fastcgi/fcgiapp.h: No such file or directory
checked program was:
/* begin */
1: #include <fastcgi/fcgiapp.h>
/* end */
--------------------
A quick googling on the error above showed that aptitude package libfcgi-dev was missing...
http://forums.fedoraforum.org/showthread.php?t=195233
Installing that linux debian/ubuntu package libfcgi-dev solved the issue.
Still had to stop and start the Rails-Server to have the upgraded forge running again.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Mon, 03/29/2010 - 14:00 Comment #1
Thanks for pointing this out - I will add libfcgi-dev as a dependency in the next version of the installer.
Submitted by Issues on Tue, 04/13/2010 - 01:21 Comment #2
Automatically closed -- issue fixed for 2 weeks with no activity.