Errors Installing mysql2 gem via the Bundler

前端 未结 9 688
庸人自扰
庸人自扰 2020-12-04 10:33

I am trying to install the mysql2 gem via the Bundler, but it keeps dying with the following error:

** executing command
/home/cc_rails/.rvm/rub         


        
9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 11:01

    On my Ubuntu 16.04.4 LTS running mysql Ver 15.1 Distrib 10.0.34-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2, the following worked:

    sudo apt-get install libmariadb-client-lgpl-dev
    

    I saw, that the error message of the current installer suggests running

    apt-get install libmysqlclient-dev
    

    This might work as well.

提交回复
热议问题