Windows Server 2016、Apache 2.4、Ruby 3.0.6(带有 webkit)、Rails 7.0.4.3
我正在尝试使用命令安装 FCGI gem
gem install fcgi
但它返回该错误:
C:\Apache24\htdocs\redmine-5.0.5>gem install fcgi
Building native extensions. This could take a while...
ERROR: Error installing fcgi:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/fcgi-0.9.2.2/ext/fcgi
C:/Ruby30-x64/bin/ruby.exe extconf.rb
checking for fcgiapp.h... no
checking for fastcgi/fcgiapp.h... no
current directory: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/fcgi-0.9.2.2/ext/fcgi
make DESTDIR\= sitearchdir\=./.gem.20230518-6868-obubmv sitelibdir\=./.gem.20230518-6868-obubmv clean
make: *** No hay ninguna regla para construir el objetivo 'clean'. Alto.
current directory: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/fcgi-0.9.2.2/ext/fcgi
make DESTDIR\= sitearchdir\=./.gem.20230518-6868-obubmv sitelibdir\=./.gem.20230518-6868-obubmv
make: *** No hay objetivos. Alto.
make failed, exit code 2
Gem files will remain installed in C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/fcgi-0.9.2.2 for inspection.
Results logged to C:/Ruby30-x64/lib/ruby/gems/3.0.0/extensions/x64-mingw32/3.0.0/fcgi-0.9.2.2/gem_make.out
好像少了fcgiapp.h这个库
我尝试安装不同的 fcgi 版本,结果相同。
此外,我尝试将存档 fcgiapp.h 放在文件中:C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/fcgi-0.9.2.2/ext/fcgi 没有结果。