さくらインターネットに Tmail をインストールすると失敗する
すでにさくらインターネットのサーバーには、$HOME ディレクトリ下に gem をインストールしている。
しかし、gem はシステム側のディレクトリにインストールを試みて失敗しているようだ。
% gem install tmail Need to update 11 gems from http://gems.rubyforge.org ........... complete Building native extensions. This could take a while... ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension. ruby extconf.rb install tmail creating Makefile make cc -I. -I/usr/local/lib/ruby/1.8/i386-freebsd6 -I/usr/local/lib/ruby/1.8/i386-freebsd6 -I. -fPIC -O2 -fno-strict-aliasing -pipe -fPIC -D_FILE_OFFSET_BITS=64 -c tmailscanner.c cc -shared -Wl,-soname,tmailscanner.so -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -o tmailscanner.so tmailscanner.o -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -L. -lruby18 -lcrypt -lm -pthread -lc make install /usr/bin/install -c -o root -g wheel -m 0755 tmailscanner.so /home/littlebuddha/local/lib/ruby/gem/gems/tmail-1.2.2/lib install: /home/littlebuddha/local/lib/ruby/gem/gems/tmail-1.2.2/lib/tmailscanner.so: chown/chgrp: Operation not permitted *** Error code 71 Stop in /home/littlebuddha/local/lib/ruby/gem/gems/tmail-1.2.2/ext/tmailscanner/tmail. Gem files will remain installed in /home/littlebuddha/local/lib/ruby/gem/gems/tmail-1.2.2 for inspection. Results logged to /home/littlebuddha/local/lib/ruby/gem/gems/tmail-1.2.2/ext/tmailscanner/tmail/gem_make.out
解決方法を思案中。