Error when trying to install app with mysql2 gem

前端 未结 11 1958
鱼传尺愫
鱼传尺愫 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:28

    After Homebrew update (openssl@1.1) there is a new path for libs, so may use:

    bundle config build.mysql2 --with-opt-dir=$(brew --prefix openssl)
    bundle install
    

    It will fix ld: library not found for -lssl error

提交回复
热议问题