【发布时间】:2015-03-06 13:37:05
【问题描述】:
我是新来的 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.
当我开始安装 bundle 时,我会得到其他需要在 bundle 之前安装的包。
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/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.
它不断显示我需要在捆绑之前安装的包。
【问题讨论】:
-
也许,您可以尝试“捆绑更新”
-
我会尝试看看您是否可以手动访问端点 (rubygems.org/gems)。似乎存在不允许您下载 gem 的连接问题或 DNS 问题。好消息是你并没有发疯,这很可能与你无关,而是 Ubuntu 或你的路由器(或你的 ISP)中的配置设置。
标签: ruby-on-rails ruby ruby-on-rails-4 gem bundle