Error when trying to install app with mysql2 gem

前端 未结 11 1967
鱼传尺愫
鱼传尺愫 2020-12-02 06:52

Im trying to install an open source rails 3.2.21 application that uses the mysql2 gem, but when i try and run the bundle commant I get the followin

11条回答
  •  Happy的楠姐
    2020-12-02 07:28

    The combination of commands solved it me. I am on Mojave.

    brew reinstall openssl && brew link openssl --force

    and then

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

提交回复
热议问题