LoginSignup
9
0

More than 3 years have passed since last update.

rubyインストールでtmpの容量不足

Posted at

どうした?

conohaにrubyをインストールしようとしところ/tmpが不足しているため(?)インストールできなかった。
このようなエラーがでた

compiling raddrinfo.c
/tmp/ccYYl90Y.s: Assembler messages:
/tmp/ccYYl90Y.s: Fatal error: can't close raddrinfo.o: No space left on device

ちなみに/tmpのサイズは242M
100%使われていることがわかる。

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             236M     0  236M   0% /dev
run             242M  368K  241M   1% /run
/dev/vda2        20G  5.5G   14G  30% /
tmpfs           242M     0  242M   0% /dev/shm
tmpfs           242M     0  242M   0% /sys/fs/cgroup
tmpfs           242M  240M  1.9M 100% /tmp
tmpfs            49M     0   49M   0% /run/user/1000

こうする!

TMPDIRとして大きな領域を指定してビルドしてあげる。
TMPDIR="${PWD}/tmp" rbenv install 2.1.0

参考

/tmpがnoexec指定されていてrbenv installなどがコケるとき - Qiita

9
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
0