mysql2 gem fails to compile with MySQL 5.6.12 on OS X with Homebrew

前端 未结 7 1155
刺人心
刺人心 2020-12-04 23:41

I updated all the packages I installed with Homebrew. MySQL got upgraded to 5.6.12 (from 5.5.27 or so):

$ mysql --version
mysql  Ver 14.14 Distrib 5.6.12, fo         


        
7条回答
  •  温柔的废话
    2020-12-05 00:36

    The top answer here is out-of-date... the brewers have fixed mysql:

    brew update
    brew upgrade mysql
    gem install mysql2
    

    This will update mysql to the latest version, which seems to work fine with the mysql2 gem on OSX.

提交回复
热议问题