无法在ubuntu vps上通过rbenv安装ruby 2.5.1
当我运行命令rbenv install 2.5.1时,我尝试在我的vps无法在ubuntu vps上通过rbenv安装ruby 2.5.1,ruby,ubuntu,vps,rbenv,diskspace,Ruby,Ubuntu,Vps,Rbenv,Diskspace,当我运行命令rbenv install 2.5.1时,我尝试在我的vpsUbuntu 18.04上安装ruby 2.5.1。它显示了一个错误 /home/bet/.rbenv/plugins/ruby-build/bin/ruby-build: line 1295: cannot create temp file for here-document: No space left on device mktemp: failed to create directory via template ‘
Ubuntu 18.04
上安装ruby 2.5.1。它显示了一个错误
/home/bet/.rbenv/plugins/ruby-build/bin/ruby-build: line 1295: cannot create temp file for here-document: No space left on device
mktemp: failed to create directory via template ‘/tmp/ruby-build.20200313131832.28894.XXXXXX’: No space left on device
mkdir: cannot create directory ‘’: No such file or directory
BUILD FAILED (Ubuntu 18.04 using ruby-build 20200224-6-gd8019fe)
Inspect or clean up the working tree at
我试图通过命令df-h
检查磁盘空间。它显示
Filesystem Size Used Avail Use% Mounted on
udev 463M 0 463M 0% /dev
tmpfs 99M 1.2M 98M 2% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 3.9G 3.8G 0 100% /
tmpfs 493M 0 493M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 493M 0 493M 0% /sys/fs/cgroup
/dev/sda2 976M 145M 806M 16% /boot
tmpfs 99M 0 99M 0% /run/user/1000
/dev/loop2 92M 92M 0 100% /snap/core/8592
tmpfs 99M 0 99M 0% /run/user/1001
/dev/loop0 92M 92M 0 100% /snap/core/8689
tmpfs 99M 0 99M 0% /run/user/1002
所以任何人都可以帮助我。谢谢当rbenv正在创建的临时文件的大小超过
/tmp/
目录的大小时,通常会发生这种情况。当我在安装ubuntu时为/tmp分配了更少的空间时,我曾经面对过这个问题。您的/tmp/
目录的大小是多少?谢谢您的回答。我解决了。