ruby - 没有足够的空间来安装 Ruby - Debian 7

标签 ruby debian rvm

尝试以 root 用户身份使用 RVM 安装 ruby​​ 时出现以下错误。

我还有 16gB 的可用空间,所以这不是问题

root@debian:~# rvm install 2.1.0
find: `/root/rvm/rubies': No such file or directory
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/debian/7/i386/ruby-2.1.0.tar.bz2
Checking requirements for debian.
Requirements installation successful.
df: `/root/rvm/rubies': No such file or directory
df: no file systems processed
Not enough space (0MB) to install ruby (100MB).
ruby-2.1.0 - #configure
ruby-2.1.0 - #download
/root/rvm/scripts/functions/support: line 166: cd: /root/rvm/archives: No such file or directory
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22.6M  100 22.6M    0     0   293k      0  0:01:18  0:01:18 --:--:--  417k
md5sum: /root/rvm/archives/bin-ruby-2.1.0.tar.bz2: No such file or directory
Downloaded archive checksum did not match, archive was removed!
If you wish to continue with not matching download add '--verify-downloads 2' after the command.

Downloading https://rvm.io/binaries/debian/7/i386/ruby-2.1.0.tar.bz2 failed.
Mounting remote ruby failed with status 2, trying to compile.
df: `/root/rvm/rubies': No such file or directory
df: no file systems processed
Not enough space (0MB) to install ruby (440MB).

我尝试使用 --verify-downloads 2 但这没有帮助

root@debian:~# rvm install 2.1.0 --verify-downloads 2
find: `/root/rvm/rubies': No such file or directory
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/debian/7/i386/ruby-2.1.0.tar.bz2
Checking requirements for debian.
Requirements installation successful.
df: `/root/rvm/rubies': No such file or directory
df: no file systems processed
Not enough space (0MB) to install ruby (100MB).
ruby-2.1.0 - #configure
ruby-2.1.0 - #download
/root/rvm/scripts/functions/support: line 166: cd: /root/rvm/archives: No such file or directory
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22.6M  100 22.6M    0     0   378k      0  0:01:01  0:01:01 --:--:--  281k
md5sum: /root/rvm/archives/bin-ruby-2.1.0.tar.bz2: No such file or directory
Downloaded archive checksum did not match!
ruby-2.1.0 - #validate archive
tar (child): /root/rvm/archives/bin-ruby-2.1.0.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
tar (child): /root/rvm/archives/bin-ruby-2.1.0.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
The downloaded package for https://rvm.io/binaries/debian/7/i386/ruby-2.1.0.tar.bz2,
Does not contains single 'bin/ruby' or 'ruby-2.1.0',
Only '' were found instead.
Mounting remote ruby failed with status 4, trying to compile.
df: `/root/rvm/rubies': No such file or directory
df: no file systems processed
Not enough space (0MB) to install ruby (440MB).
root@debian:~# 

以下是我在全新的 Debian 7 上安装 ruby​​ 的分步过程:

# Install RVM
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable
sudo apt-get install curl
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc




sudo apt-get install build-essential 
sudo apt-get install curl 
sudo apt-get install zlib1g-dev libreadline-dev libssl-dev libxml2-dev 
curl -sSL https://github.com/wayneeseguin/rvm/tarball/stable -o rvm-stable.tar.gz
mkdir rvm && cd rvm
tar --strip-components=1 -xzf ../rvm-stable.tar.gz
./install --auto-dotfiles
echo "[[ -s "$HOME/rvm/scripts/rvm" ]] && source "$HOME/rvm/scripts/rvm"" >> .bashrc

#Restart BASH
# Install MRI Ruby
rvm list known
rvm install 2.1.0
rvm use 2.1.0 default

有人可以帮助我或让我知道我安装不正确的地方吗?

谢谢, -D

最佳答案

我在 Arch Linux Endevour OS 发行版上遇到了问题。
我尝试了几种 rvm 安装模式,但我仍然收到一些奇怪的消息

df: /home/juanito/.rvm/rubies: No existe el fichero o el directorio Not enough space (0MB) to install ruby (440MB).

我的硬盘上有足够的可用空间。
我刚刚创建了一个空目录:

mkdir ~/.rvm/rubies

它开始工作了。

关于ruby - 没有足够的空间来安装 Ruby - Debian 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26132138/

相关文章:

ruby - Ruby 是否有用于返回值的特殊存储?

linux - 如何使用 dpkg 卸载最后安装的应用程序(最近安装的)?

ruby-on-rails - 当我进行捆绑安装时,我收到了 kgio gem 的 gem 安装错误

ruby-on-rails - Ubuntu rvm 设置问题

ruby-on-rails - 在 Snow Leopard 上安装 Ruby 和 Rails 的最佳实践?

ruby - 如何定位目标目录

mysql - SiteController 中的 ActiveRecord::StatementInvalid#create Rails 为所有字段插入空值

mysql - dpkg-deb : error: 'mysql-apt-config_0.8.14-1_all.deb' is not a Debian format archive

linux - 从一个来源为数据文件创建多个 Debian 软件包

ruby-on-rails - Phusion Passenger 在使用 rvm 升级 Ruby 和 Rails 后抛出错误