执行 sudo bundle install 时出现以下错误。
Gem 文件将保持安装在
/Users/madhakul/Documents/Inshort/puurna/vendor/cache/ruby/2.3.0/gems/nokogiri-1.6.6.2
供检查。
结果记录到
/Users/madhakul/Documents/Inshort/puurna/vendor/cache/ruby/2.3.0/extensions/universal-darwin-18/2.3.0/nokogiri-1.6.6.2/gem_make.out
安装 nokogiri (1.6.6.2) 和 Bundler 时出错
无法继续。
确保 gem install nokogiri -v '1.6.6.2' --source
'https://rubygems.org/'
在捆绑之前成功。
在 Gemfile 中:
roo 已解析为 2.0.0,这取决于
在查阅了一些帮助 Material 后,为 MacOS 10.14 Mojave 安装了开发人员工具,但仍然无法解决问题。
最佳答案
我最近还必须安装 Nokogiri 1.6.6.2 并遇到了同样的问题(也在 Mojave 10.14 上)。我尝试先安装 xcode-select,但仅此而已并不能解决问题。在安装指南的进一步下方(如@xploshioOn 链接 https://nokogiri.org/tutorials/installing_nokogiri.html )是我找到帮助我的答案的地方;安装额外的标题。
A temporary workaround to allow previous releases of Nokogiri to build is to install the extra headers package mentioned in the Xcode 10 release notes:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
这将打开一个窗口,然后您可以通过安装提示运行额外的头文件以运行以前版本的 Nokogiri。
关于ruby-on-rails - 安装 nokogiri (1.6.6.2) 时出错,Bundler 无法继续,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53133918/