LoginSignup
4
3

More than 5 years have passed since last update.

mojaveでbundle installできない

Last updated at Posted at 2018-10-31

環境

  • MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports)
  • macOS Mojave 10.14
  • Xcode 10.14
  • Ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin18]

エラー

ターミナルでbundle installを実行
下記のエラーでbundle install失敗

An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.6.2' --source 'https://rubygems.org/'` succeeds before bundling.

解消方法

下記をターミナルで実行し、xcode10.14を再インストール

sudo open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

無事にbundle installできました。

参考資料

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3