gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 04:31:45 25 4
gpt4 key购买 nike

我已成功执行以下命令:

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com