読者です 読者をやめる 読者になる 読者になる

tmailを1.9で使おうとしてインストールできない

Ruby

全然1.9に対応していないようだ。cのライブラリ部分だから
使えるようにするのは萎えるな。

% ruby19 -S gem install tmail
Building native extensions.  This could take a while...
ERROR:  Error installing tmail:
	ERROR: Failed to build gem native extension.

/Users/fujioka/local/bin/ruby19 extconf.rb
creating Makefile

make
gcc -I. -I/Users/fujioka/local/include/ruby-1.9.1/i386-darwin9.8.0 -I/Users/fujioka/local/include/ruby-1.9.1/ruby/backward -I/Users/fujioka/local/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -O3 -fomit-frame-pointer -ggdb -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32  -pipe -D_FILE_OFFSET_BITS=64  -o tmailscanner.o -c tmailscanner.c
tmailscanner.c:19:16: error: re.h: No such file or directory
tmailscanner.c: In function ‘mails_s_new’:
tmailscanner.c:75: error: ‘struct RString’ has no member named ‘ptr’
tmailscanner.c:77: error: ‘struct RString’ has no member named ‘len’
tmailscanner.c: In function ‘skip_japanese_string’:
tmailscanner.c:188: warning: implicit declaration of function ‘ismbchar’
tmailscanner.c:189: warning: implicit declaration of function ‘mbclen’
tmailscanner.c: In function ‘digit_p’:
tmailscanner.c:379: error: ‘struct RString’ has no member named ‘ptr’
tmailscanner.c:380: error: ‘struct RString’ has no member named ‘len’
tmailscanner.c:381: error: ‘struct RString’ has no member named ‘ptr’
tmailscanner.c:381: error: ‘struct RString’ has no member named ‘ptr’
tmailscanner.c: In function ‘atomsym’:
tmailscanner.c:399: error: ‘struct RString’ has no member named ‘ptr’
tmailscanner.c: In function ‘debug_print’:
tmailscanner.c:420: error: ‘struct RString’ has no member named ‘ptr’
tmailscanner.c:421: error: ‘struct RString’ has no member named ‘ptr’
make: *** [tmailscanner.o] Error 1


Gem files will remain installed in /Users/fujioka/local/lib/ruby/gems/1.9.1/gems/tmail-1.2.3.1 for inspection.
Results logged to /Users/fujioka/local/lib/ruby/gems/1.9.1/gems/tmail-1.2.3.1/ext/tmailscanner/tmail/gem_make.out