Files

如何安裝一個 .bin 文件,它會在 /tmp 中給出需要更多空間的錯誤?

  • May 24, 2014

這是錯誤:

~]$ ./jdev_suite_121200_linux64.bin 
0%....................................................................................................100%
Not enough disk space in dir /tmp/sfx_bG4Mlk, requires at least -1893 MB disk space
** Error during execution, error code = -1.

編輯:

~]$ df -h
Filesystem                       Size  Used Avail Use% Mounted on
/dev/dm-3                         50G   25G   22G  54% /
devtmpfs                         1.9G     0  1.9G   0% /dev
tmpfs                            1.9G  1.6M  1.9G   1% /dev/shm
tmpfs                            1.9G  1.1M  1.9G   1% /run
tmpfs                            1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs                            1.9G  904K  1.9G   1% /tmp
/dev/sda2                        477M  130M  319M  29% /boot
/dev/sda1                        200M  9.6M  191M   5% /boot/efi
/dev/mapper/fedora_hostName-home  405G  182G  203G  48% /home

大多數程序使用環境變數,如果那裡沒有足夠的空間TMPDIR,就會回退。/tmp

TMPDIR=/var/tmp ./jdev_suite_121200_linux64.bin

如果程序已經/tmp硬編碼,你可以做得/tmp更大。

mount -o remount,size=4g /tmp

引用自:https://unix.stackexchange.com/questions/131769