确保 `gem install nokogiri -v '1.6.6.4'` 在捆绑前成功。错误

Make sure that `gem install nokogiri -v '1.6.6.4'` succeeds before bundling. ERROR

我尝试创建 Rails 应用程序,但我一直在使用 nokigiri 时遇到此错误。以前有人遇到过这个问题吗?

Make sure that `gem install nokogiri -v '1.6.6.4'` succeeds before bundling.
         run  bundle exec spring binstub --all

我尝试安装 gem 但仍然没有改善。这是一个截图:

尝试:

xcode-select --install

此外,Nokogiri 需要 libiconv,因此您可能需要安装它并使用指定的选项 --with-iconv-lib and/or --with-iconv-include 再次安装 gem。