LoginSignup
10
10

More than 5 years have passed since last update.

`bundle install`したときに`mysql2`のインストールでコケた時の対処法

Posted at

bundle installしたら以下のエラーが出てコケた。

Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Installing rake 10.3.2

-- 中略 --

extconf failed, exit code 1

Gem files will remain installed in /Users/konya/Projects/qis/vender/bundle/ruby/2.1.0/gems/mysql2-0.3.16 for inspection.
Results logged to /Users/konya/Projects/qis/vender/bundle/ruby/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/mysql2-0.3.16/gem_make.out
An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.16'` succeeds before bundling.

一番下にgem install mysql2 -v '0.3.16'しろって書いてあるからやってみたけど、同じ感じでコケた。

新しく買ったMBPだったし、そういえばmysqlインストールしてねんじゃね?
と思って、

brew install mysql

したあとに

bundle install

したらでけた。

10
10
1

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
10
10