I can't run “bundle update” because of “mysql2” gem

后端 未结 5 1722
庸人自扰
庸人自扰 2021-02-14 14:29

I have this in the Gemfile:

gem \'mysql2\'

But when I run bundle update, I get this error message:

An error oc         


        
5条回答
  •  一向
    一向 (楼主)
    2021-02-14 14:50

    On Ubuntu, run

    sudo apt-get install libmysqlclient-dev
    

    Or, if you use MariaDB, run

    sudo apt-get install libmariadbclient-dev
    

提交回复
热议问题