【问题标题】:ruby on rails bundle installruby on rails 捆绑安装
【发布时间】:2015-07-26 03:52:03
【问题描述】:

我是 ruby​​ on rails 的新手,我已经在 Ubuntu 14.04 上成功安装了 ruby​​ on rails 4.2 并创建了新应用程序,但是当我启动服务器以查看它是否可以通过编写运行时

rails server

我收到此错误消息

Could not find gem 'sass-rails (~> 5.0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.

当我开始安装捆绑包时 我得到了其他需要在捆绑之前安装的软件包

当我开始安装捆绑包时 我得到了其他需要在捆绑之前安装的软件包

错误信息

Gem::RemoteFetcher::FetchError: Errno::EHOSTUNREACH: No route to host - connect(2) for "rubygems.global.ssl.fastly.net" port 443 (https://rubygems.org/gems/minitest-5.5.1.gem)
An error occurred while installing minitest (5.5.1), and Bundler cannot
continue.
Make sure that `gem install minitest -v '5.5.1'` succeeds before bundling.

在我安装 minitest 并运行 bundle install 后

我收到此错误消息

Gem::RemoteFetcher::FetchError: Errno::EHOSTUNREACH: No route to host - connect(2) for "rubygems.global.ssl.fastly.net" port 443 (https://rubygems.org/gems/debug_inspector-0.0.2.gem)
An error occurred while installing debug_inspector (0.0.2), and Bundler cannot
continue.
Make sure that `gem install debug_inspector -v '0.0.2'` succeeds before
bundling.

然后继续向我展示我需要在捆绑之前安装的软件包

【问题讨论】:

  • 能否提供“budle install”后的错误信息?
  • “当我开始安装 bundle 时,我得到了其他需要在 bundle 之前安装的包,并且文件很多” - 你能进一步解释一下吗?捆绑安装时究竟会发生什么?

标签: ruby-on-rails ruby bundle ruby-on-rails-4.2


【解决方案1】:

它说你的包没有安装。请从您的项目根目录尝试bundle install

【讨论】:

  • 我收到此错误消息 Gem::RemoteFetcher::FetchError: Errno::EHOSTUNREACH: No route to host - connect(2) for "rubygems.global.ssl.fastly.net" 端口 443 ( rubygems.org/gems/minitest-5.5.1.gem) 安装 minitest (5.5.1) 时出错,Bundler 无法继续。在捆绑之前确保gem install minitest -v '5.5.1' 成功。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-12-24
  • 2017-10-31
  • 1970-01-01
  • 1970-01-01
  • 2020-10-27
相关资源
最近更新 更多