Nitrous.IO - 安装rspec并且安装失败 - 安装nokogiri(1.6.0)时发生错误,并且Bundler无法继续 [英] Nitrous.IO - Installing rspec and it fails to install - An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue

查看:153
本文介绍了Nitrous.IO - 安装rspec并且安装失败 - 安装nokogiri(1.6.0)时发生错误,并且Bundler无法继续的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我收到的完整错误消息


Errno :: ENOSPC:设备上没有剩余空间 - / home / action /。 rvm / gems / ruby​​-2.0.0-p247 / gems / nokogiri-1.6.0 / ext / nokogiri / gem_make.out

安装nokogiri(1.6.0)时发生错误,Bundler无法继续。
确保 gem install nokogiri -v'1.6.0'在捆绑之前成功完成>




我遵循Ruby on Rails 3教程,希望看到rspec测试的功能,但Nitrous.IO应用程序不允许我安装它。

  group:development do 
gem'rspec-rails'
end

group:test do
gem'rspec'
gem'webrat'
end

这个错误信息显然指向空间问题,但我希望能找到一个方法吗?或者,也许我错过了其他明显的东西。我是否只需要付钱,并在Nitrous.IO上获得更多空间?

解决方案

我们将会更容易地确定将来的磁盘使用情况,但现在看到使用磁盘空间的最简单方法将导航到您的方框页面,然后从此处点击方框信息中的设置。



如果您想查看哪些特定文件夹正在占用磁盘空间,可以在控制台中运行以下命令:



查看整个磁盘使用情况:

  du --max-depth = 1 -h〜/ | sort -g -r 

如果由于从Autoparts安装软件包而导致空间不足,则可以删除在〜/ .parts / archives 中找到的档案。否则,如果占用大部分空间,您可能需要卸载一些宝石。

请查看升级指南以获取更多相关信息。


Here is the full error message I get

Errno::ENOSPC: No space left on device - /home/action/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.6.0/ext/nokogiri/gem_make.out
An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue.
Make sure that gem install nokogiri -v '1.6.0' succeeds before bundling.>

I'm following the Ruby on Rails 3 tutorial and hoping to see what the rspec testing does but Nitrous.IO application doesn't allow me to install it.

group :development do
  gem 'rspec-rails'
end

group :test do
  gem 'rspec'
  gem 'webrat'
end

The error message obviously points to a space issue but I was hoping for a way round this? Or maybe that I have missed something else obvious. Do I simply just need to pay and get more space on Nitrous.IO?

解决方案

We will make this easier to determine disk usage in the future, but for now the simplest way to see the disk space used is to navigate to your boxes page, and from there clicking "Settings" within your box information.

If you want to see which specific folders are using up disk space, you can run the following command in your console:

View overall disk usage:

du --max-depth=1 -h ~/ | sort -g -r

If you ran out of space due to installing packages from Autoparts then you could delete the archives found in ~/.parts/archives. Else, you may need to uninstall some gems if they appear to take up the majority of space.

You can also reconfigure your Nitrous box to include more space; take a look at the upgrade guide for more information on that.

这篇关于Nitrous.IO - 安装rspec并且安装失败 - 安装nokogiri(1.6.0)时发生错误,并且Bundler无法继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆