2

When I run " bundle install " I get the following error:

An error occurred while installing mysql2 (0.3.17), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.17'` succeeds before bundling.

And when I try to run the command gem install mysql2 -v '0.3.17' I get the error:

ERROR:  Error installing mysql2:
ERROR: Failed to build gem native extension.

Complete log

I've tried reinstalling and installing the rails.

I'm on a MacOs.

Anyone? Thanks!

1 Answers1

2

If you are using homebrew:

brew install mysql

then

gem install mysql2 -v '0.3.17'
Brennan
  • 5,632
  • 2
  • 17
  • 24