当我rails s在控制台中运行
时,命令失败并得到以下响应:
Could not find nokogiri-1.6.8.1 in any of the sources
Run bundle install to install missing gems.
这里的第一个问题是 nokogiri 不在我的 Gemfile 中,因为我没有使用 nokogiri,那么为什么当 nokogiri 甚至不是我运行 bundle install 的项目的一部分时,它是一个问题?
然后我根据初始提示运行 bundle install :
bundle install
我收到一个错误。最后的错误信息:
An error occurred while installing byebug (9.0.6), and Bundler cannot continue.
Make sure that gem install byebug -v '9.0.6' succeeds before bundling.
我注意到,在整个过程中,我收到了其他错误消息:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
那么,这是我项目中 Gemfile 的问题还是更深层次的问题?意思是 Gems 安装在我的电脑上的方式?
这是我的 Gemfile:
source "https://rubygems.org"
ruby …Run Code Online (Sandbox Code Playgroud)