mongrel お前もか!
そー思って、mongrel をインストールしようとしたら、またまたエラー。なんだよー (T^T)
$ gem install mongrel
Fetching: gem_plugin-0.2.3.gem (100%)
Fetching: daemons-1.1.4.gem (100%)
Fetching: fastthread-1.0.7.gem (100%)
Building native extensions. This could take a while...
Fetching: cgi_multipart_eof_fix-2.5.0.gem (100%)
Fetching: mongrel-1.1.5.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension./Users/admin/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for main() in -lc... yes
creating Makefilemake
gcc -I. -I/Users/admin/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i386-darwin9.8.0 -I/Users/admin/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/admin/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -o http11.o -c http11.c
http11.c: In function ‘http_field’:
http11.c:77: error: ‘struct RString’ has no member named ‘ptr’
http11.c:77: error: ‘struct RString’ has no member named ‘len’
http11.c:77: warning: left-hand operand of comma expression has no effect
http11.c:77: warning: statement with no effect
http11.c: In function ‘header_done’:
http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
http11.c:174: error: ‘struct RString’ has no member named ‘ptr’
http11.c:176: error: ‘struct RString’ has no member named ‘ptr’
http11.c:177: error: ‘struct RString’ has no member named ‘len’
http11.c: In function ‘HttpParser_execute’:
http11.c:298: error: ‘struct RString’ has no member named ‘ptr’
http11.c:299: error: ‘struct RString’ has no member named ‘len’
make: *** [http11.o] Error 1
どうやら、Ruby 1.9 で実行するとダメっぽい。どうしようと思ってたら、pre release バージョンをインストールする方法があるっぽい。
単純な話、--pre オプションをつければ良いらしい。
$gem install mongrel --pre
無事にインストール成功。あー、よかった :-)
$ gem list