Can't install mysql2 gem on macOS Sierra

后端 未结 12 2100
抹茶落季
抹茶落季 2020-12-23 13:21

I\'m setting up my development environment in the new macOS Sierra .

First of all, I installed Rbenv, Ruby (2.3.1)

12条回答
  •  暖寄归人
    2020-12-23 14:22

    Lots of great answers, I was able to combine them into this:

    gem install mysql2 --source 'https://rubygems.org/' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
    

    because I was not comfortable with bundle config

提交回复
热议问题