0
私はRubyに精通していませんが、いくつかのRubyネイティブエクステンションをビルドする必要があるシステムユーティリティを使用しています。私は、インストールコマンドを実行しようとすると、私は次のスタックトレースを取得する:様々な理由Rubyネイティブエクステンションのtmpディレクトリを変更する
Building native extensions. This could take a while...
ERROR: Error installing sensu-plugins-http:
ERROR: Failed to build gem native extension.
current directory: /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/unf_ext-0.0.7.2/ext/unf_ext
/opt/sensu/embedded/bin/ruby -r ./siteconf20161128-17526-tzlgio.rb extconf.rb
checking for main() in -lstdc++... yes
creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/opt/sensu/embedded/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/unf_ext-0.0.7.2/mkmf.log
current directory: /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/unf_ext-0.0.7.2/ext/unf_ext
make "DESTDIR=" clean
current directory: /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/unf_ext-0.0.7.2/ext/unf_ext
make "DESTDIR="
compiling unf.cc
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default]
unf.cc:75:1: fatal error: error writing to /tmp/ccyXxObQ.s: No space left on device
compilation terminated.
make: *** [unf.o] Error 1
make failed, exit code 2
は、私の/tmp/
ディレクトリが意図的に小さいです。 Ruby/gccにビルドプロセスの別の一時的な場所を使用させる方法があるのでしょうか?