![如何安装 .bin 文件,该文件在 /tmp 中出现需要更多空间的错误?](https://linux22.com/image/37059/%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85%20.bin%20%E6%96%87%E4%BB%B6%EF%BC%8C%E8%AF%A5%E6%96%87%E4%BB%B6%E5%9C%A8%20%2Ftmp%20%E4%B8%AD%E5%87%BA%E7%8E%B0%E9%9C%80%E8%A6%81%E6%9B%B4%E5%A4%9A%E7%A9%BA%E9%97%B4%E7%9A%84%E9%94%99%E8%AF%AF%EF%BC%9F.png)
这是错误:
~]$ ./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
答案1
大多数程序都使用环境变量,如果没有足够的空间,TMPDIR
就会回退到环境变量。/tmp
TMPDIR=/var/tmp ./jdev_suite_121200_linux64.bin
如果程序已/tmp
硬编码,则可以做得/tmp
更大。
mount -o remount,size=4g /tmp