【发布时间】: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