ruby - 在 CentOS 中安装 ruby​​ fastCGI 绑定(bind)时出错。如何避免~>_<~

标签 ruby linux installation fastcgi

我已成功执行以下命令:

tar xzvf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure --prefix=/usr/local/fcgi
make && make install


tar xzvf ruby-fcgi-0.8.7.tar.gz
cd ruby-fcgi-0.8.7
ruby install.rb config -- --with-fcgi-include=/usr/local/fcgi/include --with-fcgi-lib=/usr/local/fcgi/lib


但当我运行安装脚本时出现此错误:

ruby install.rb setup

install.rb: entering setup phase...
---> lib
<--- lib
---> ext
---> ext/fcgi
make
gcc -I. -I/usr/local/ruby/include/ruby-1.9.1/i686-linux -I/usr/local/ruby/include/ruby-1.9.1/ruby/backward -I/usr/local/ruby/include/ruby-1.9.1 -I/root/ruby-fcgi-0.8.6/ext/fcgi -DHAVE_FCGIAPP_H  -D_FILE_OFFSET_BITS=64  -fPIC  -O2 -g -Wall -Wno-parentheses  -o fcgi.o -c fcgi.c
fcgi.c: In function `fcgi_stream_write':
fcgi.c:215: error: structure has no member named `ptr'
fcgi.c:215: error: structure has no member named `len'
fcgi.c: In function `fcgi_stream_puts_ary':
fcgi.c:264: error: structure has no member named `len'
fcgi.c:265: error: structure has no member named `ptr'
fcgi.c:266: warning: implicit declaration of function `rb_inspecting_p'
fcgi.c: In function `fcgi_stream_puts':
fcgi.c:290: warning: implicit declaration of function `rb_protect_inspect'
fcgi.c:298: error: structure has no member named `ptr'
fcgi.c:298: error: structure has no member named `len'
fcgi.c: In function `fcgi_stream_gets':
fcgi.c:372: error: structure has no member named `len'
fcgi.c: In function `fcgi_s_accept':
fcgi.c:85: warning: statement with no effect
make: *** [fcgi.o] 错误 1
setup failed
'system make' failed
try 'ruby install.rb --help' for usage

最佳答案

我很确定 ruby​​-fcgi 不适用于 Ruby 1.9。它于 2006 年发布。

关于ruby - 在 CentOS 中安装 ruby​​ fastCGI 绑定(bind)时出错。如何避免~>_<~,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/982112/

相关文章:

linux - 如何从 IP 地址列表中获取第四个八位字节大于 10 的行?

visual-studio-2010 - 如何修复 Visual Studio 安装程序项目中的警告 1910 错误?

ruby-on-rails - 未初始化的常量 ActionDispatch::Routing::Routes (NameError)

带通配符表达式的 Ruby 'require'

linux - 使用 bash 清理输出文件的最佳方法是什么?

c - ELF 格式操作

mysql - 我需要提供/删除哪些 MySQL 权限以防止 Rails 的 db :reset?

ruby - 在 ruby​​ 中替换字符串中的字符串的最佳方法是什么?

installation - 根据 "Newer version then newer date"规则覆盖文件

windows - 如何在 Windows 上设置 git?