Error when trying to install app with mysql2 gem

前端 未结 11 1960
鱼传尺愫
鱼传尺愫 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条回答
  •  一整个雨季
    2020-12-02 07:27

    Try this:

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

    (Update version as appropriate)

提交回复
热议问题