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

前端 未结 7 1159
刺人心
刺人心 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:47

    I had to specify the ldflags and cppflags for it to compile correctly, like this:

    gem install mysql2 -v '0.5.2' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
    

提交回复
热议问题