バンドルインストールまたはGem Install Nokogiriを実行しているときに、アプリの実行を妨げているのと同じ問題が発生します。私はこの問題がローカルであり、すべてをRails 5に移行したことに由来すると考えていますが、わかりません。ここでは、エラーメッセージは次のとおりです。Nokogiri v 1.8.1のバンドルインストール時のインストール
An error occurred while installing nokogiri (1.8.1), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.8.1'` succeeds before bundling.
In Gemfile:
rails_admin was resolved to 1.2.0, which depends on
rails was resolved to 5.1.3, which depends on
actioncable was resolved to 5.1.3, which depends on
actionpack was resolved to 5.1.3, which depends on
actionview was resolved to 5.1.3, which depends on
rails-dom-testing was resolved to 2.0.3, which depends on
nokogiri
(それはバンドルがインストール実行中から来ている) 私はバンドルのアップデートを実行し、GitHubのが推奨するさまざまな自作のコマンドを使用してみましたが、私は、任意の成功を持っていませんでした。あなたはlibxml2のようなのdevのライブラリを持っていないので、
宝石 '1.8.1' を鋸山-vをインストール
1 error generated.
make[2]: *** [xmlIO.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
========================================================================
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
「Brew Doctor」を実行しようとしましたか?いくつかのことを再リンクする必要があります。 –
'gem install nokogiri -v '1.8.1'を実行しようとしましたか? – Cyzanfar
@Cyzanfar私はちょうど試しましたが、私はそのエラーで投稿を更新しました – user7406101