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!

7

1 Answer 1

2

If you are using homebrew:

brew install mysql

then

gem install mysql2 -v '0.3.17'
Sign up to request clarification or add additional context in comments.

1 Comment

It did not work , I got an error when installing the gem again.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.