Error installing mysql2: Failed to build gem native extension

后端 未结 27 2818
清酒与你
清酒与你 2020-11-22 08:06

I am having some problems when trying to install mysql2 gem for Rails. When I try to install it by running bundle install or gem install mysq

27条回答
  •  失恋的感觉
    2020-11-22 08:57

    Solution only works on Mac OS X

    If you've installed MySQL with homebrew, what worked for me was uninstalling MySQL, and installing MySQL Community Edition via the MySQL website (https://www.mysql.com/).

    After installed, just re-enter the command to gem install mysql2 or if necessary, sudo gem install mysql2, if you are getting permission denied problems.

提交回复
热议问题